Re: Long text file manipulation...
Re: Long text file manipulation...
- Subject: Re: Long text file manipulation...
- From: Emmanuel <email@hidden>
- Date: Wed, 4 Apr 2001 21:22:23 +0200
At 14:54 +0200 4/04/01, bRaD Weston wrote:
>
Essentially, I just want to read the first line of the file and delete it
>
from the file and add another line to the bottom of the file.
There are certainly many solutions, but I would advise to use Smile (a
script editor that my company makes freely available, and also a scriptable
text editor). This is because, 1. your solution would be very fast to
write, and 2. it will be safe. Smile has been tested against opening and
closing successively many big files.
---------------- tested under Smile 1.7.5
set theWindow to open alias thePathName
set first paragraph of theWindow to ""
set end of text of theWindow to return & theNewLineContents
close theWindow saving yes
----------------
HTH
Emmanuel