GLBasic forum

Main forum => GLBasic - en => Topic started by: matchy on 2010-May-18

Title: Remove line with putfile
Post by: matchy on 2010-May-18
A string that is joined by chr$(13)+chr$(10) (CR LF) for PUTFILE will insert 2 lines, but chr$(9) (DEL) to remove won't so I'm wondering if it is possible.
Title: Re: Remove line with putfile
Post by: Moru on 2010-May-18
To remove content from a file, read the file into memory, close and open in write mode and write back what you want in there. :-)
Title: Re: Remove line with putfile
Post by: Kitty Hello on 2010-May-18
Try using OPENFILE/READLINE instead of the old GETFILE/PUTFILE functions wherever possible.