---- Original Message ----- From: "Daniel Nelson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 27, 2003 10:33 PM Subject: Re: <lingo-l> deleting from a text file with fileIO
> Oops. Thanks for correcting me. > > Regards, > > Daniel > > Kerry Thompson wrote: > > > > Don't delete and create again, just open in write mode (or > > > read/write) and start writing with the file pointer at 0. > > > > Actually, that won't shorten the file. It will write the new stuff, and > > leave old stuff in the rest of the file. You need to delete it and write > > it again. It's a known issue with fileIO. > > > > I don't have time to look up the call, but explicitly delete it before > > you try to create it. You can use the 'delete' method of the fileio xtra to explicitly delete the file. Eg: delete(myObj) [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]