parsing a large text file
parsing a large text file
- Subject: parsing a large text file
- From: email@hidden
- Date: Thu, 6 Jul 2006 13:52:19 -0600
I need help parsing a large text file.
I need to examine the file one line at a time.
I make changes to it and then write it back out as a text file.
In the past I have put it all into one variable with:
set datafileref to (choose file with prompt "Choose the file:")
set file_data to (read datafileref as {text} using delimiter return)
But it doesn't work on a 32MB text file.
I can read the first line with:
set file_data to (read datafileref as {text} until return)
But how do I read the next line? ... and the next, etc., etc.?
--
DOS
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden