Add datas in a file

BlitzMax Forums/BlitzMax Programming/Add datas in a file

Hi all :)

I can't find any way to had datas in an existing file.
I did this

' File creation, and datas addition. No problem here
WriteFile("TestFile.txt")

file=OpenFile("TestFile.txt")

WriteLine(file, "test1")
WriteLine(file, "test2")

CloseFile file


' If I closed the file before, I can't add any datas :/
file=OpenFile("TestFile.txt")

While Not(Eof(file))
	ReadLine(file)
Wend

WriteLine(file, "test3")

CloseFile file


If anyone could help me, that would be great

see ya :)