Thank you! I learned a lot from this! I've finally decided to use a TFileStream with read/write and seek.
One more thing, I've figured out how to make my file bigger(I just write white space the file and it grows :)
But how can I make my file smaller? Can I write something from a position in...
Okay, so apparently, delphi tells me that I've got incompatible types because I'm missing brackets.
Its fixed, just need brackets around each or statment.. sorry new to Delphi
Hello! I've ran into a rather small problem that I can't solve. I get an error when I try to see if my string = to ' '?
At first I had:
------------
tmpPos : string;
tmpSize : string;
..
if (tmpPos = ' ' or tmpSize = ' ' ) then
..
..
end;
-----------
however, the above doesn't work.. I get the...
Ahh Thanks. But you say that the file system can't work in what way? Are you saying that I must always open the entire contents? Thanks for the example you posted!
This file that I'm using should always maintain the same size. In other words.. if I edit line 2 (below) and there isn't enough...
Isn't this going to delete my current file? I'm actually just trying to edit Line 1 of an existing file.
I'd like to preferably do this without opening the file because I need this to be efficient.
So my text file,
------- tmp.txt ------------
just writing some stuff hello
last night I went...
I’m trying to write to a single line in a ASCII text file and apparently writeln() only works to append to a file.
What should I use to be able to write to a single line in a text file?? i.e Without opening up the entire file and rewriting it. Can I even do this?
Any help would be appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.