Page 1 of 1

WriteLine

Posted: Thu Mar 03, 2011 4:57 pm
by Splurge
Having an issue with writing to a file. When I write a new line it is overwriting the entire contents. Just a simple:

OpenFile(1,S:test,#MODE_WRITE)
Seek(1,#EOF)
WriteLine(1,log$)

I must be missing something...

Re: WriteLine

Posted: Thu Mar 03, 2011 9:14 pm
by Allanon
Change #EOF with

EOF(1)

:D

Re: WriteLine

Posted: Fri Mar 04, 2011 2:25 pm
by Splurge
Thanks, but it still doesn't seem to work.

Re: WriteLine

Posted: Sat Mar 05, 2011 12:09 am
by airsoftsoftwair
You have to use #MODE_READWRITE. #MODE_WRITE will always erase the old file.

Re: WriteLine

Posted: Mon Mar 07, 2011 2:27 pm
by Splurge
Andreas wrote:You have to use #MODE_READWRITE. #MODE_WRITE will always erase the old file.
Thanks, works great now!