Reading/Deleting Last Line Of File
J. Landman Gay
jacque at hyperactivesw.com
Fri Feb 12 19:45:10 CST 2010
J. Landman Gay wrote:
> Alex Tweedly wrote:
>> I strongly suspect it only works on Windows :-( Sorry.
>> I don't have either a Mac or Linux box to try it on, however I did
>> just try it on the on-rev server (as an .irev script) and it also
>> appears to leave the file unchanged there.
> I wonder if it has to do with the OS-dependent line-ending conversion
> that the engine does when it writes to text files. If you open the file
> as binfile instead of plain "file" you'll avoid that conversion. It
> might work differently that way.
I'll withdraw this, it's wrong. Whatever OS your script is on, the file
it writes will will have matching line endings. So nope.
If I finish all the other stuff I need to do this weekend I'll try some
of the tests everyone posted.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode