Page 1 of 1

Open an existing file and add appended text

Posted: Tue Aug 30, 2011 10:33 pm
by Darren
I have an existing file that I want append using F.Write

However, all that I am getting is the new line overwriting the existing line. Does anybody know how to do this.

The file is to be opened, appended and then closed. Later to be opened again, appended and again closed etc etc

Thanks in advance!!!

Open an existing file and add appended text

Posted: Wed Aug 31, 2011 3:08 pm
by Marco
set the file position

supose file is the open filestream

file.position=file.size
file.write("blabla")

best regards