WriteLine

BlitzPlus Forums/BlitzPlus Programming/WriteLine

every time i use the writeline function to add a line to a file it erases everything an writes whatever i told the writeline function to write. How can i make it add a new line of text without erasing evrything else?

Did you by any chance close the filestream and re-open it every time?

if so: don't do that :)

yeah i did is that the problem?

Check out my file function tutorial here:
http://home.comcast.net/~tfsanford/FileTutorial.pdf

It is not only a problem, it is very inefficient. Just keep the handle around and reuse it to append to the file until you're done.

Use FileSize and SeekFile to reposition to the end if you need to reopen the file and append to it.