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...
WriteLine
Re: WriteLine
Change #EOF with
EOF(1)
EOF(1)
----------------------------
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
Re: WriteLine
Thanks, but it still doesn't seem to work.
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: WriteLine
You have to use #MODE_READWRITE. #MODE_WRITE will always erase the old file.
Re: WriteLine
Thanks, works great now!Andreas wrote:You have to use #MODE_READWRITE. #MODE_WRITE will always erase the old file.