how do i append a text to an existing txt file?
Posted: Tue Jun 07, 2005 2:32 pm
well
my application is a notepad that should add to a text file (*.txt) the new comments i write.
i just have a text editor and a "save" button. when i push save it has to add the new text to a specified txt file.
with this code it overwrites everytime the first line....
[/code]
my application is a notepad that should add to a text file (*.txt) the new comments i write.
i just have a text editor and a "save" button. when i push save it has to add the new text to a specified txt file.
Code: Select all
OpenFile(0, "appunti.txt")
WriteString(String$)
CloseFile(0)
[/code]