I have a text file and I would like to know on how to handle the adding and removing of records?
This is on how I read the text file:
Resultpath := GetCurrentDir;
if radiobutton1.checked then
begin
assignfile(f,resultpath+'\process.txt');
{$I-}
Reset(F);
{$I+}
while not eof(f) do
readln(f,datatext);
end;
That should take me at the end of the file. Now how do I add another string to it?
I think there's certainly a better way to handle that.
Thanks.
PO
This is on how I read the text file:
Resultpath := GetCurrentDir;
if radiobutton1.checked then
begin
assignfile(f,resultpath+'\process.txt');
{$I-}
Reset(F);
{$I+}
while not eof(f) do
readln(f,datatext);
end;
That should take me at the end of the file. Now how do I add another string to it?
I think there's certainly a better way to handle that.
Thanks.
PO