Re: parsing a large text file
Re: parsing a large text file
- Subject: Re: parsing a large text file
- From: Emmanuel <email@hidden>
- Date: Fri, 7 Jul 2006 23:13:52 +0200
At 2:54 PM -0500 7/7/06, Kevin Bradley wrote:
On Jul 7, 2006, at 12:53 PM, DOS wrote:
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.
What version of AppleScript do you have? Did you mean 32mb or 32k?
Older version of AppleScript had a 32k limit. If you're reading 32
_MB_ then you're reading a HUGE file by AS standards, and it will
take a VERY long time to parse.
Not a VERY long time in my understanding. In my very limited
experience I would say (of course YMMVM) a few seconds if you use the
fastest shell tools such as grep, or Satimage osax (ASCII) or Smile
(Unicode.) More seconds if you have to use the slower shell tools
such as sed awk etc. (in the sense of "et cetera").
Emmanuel
_______________________________________________
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