Re: How to use delimiters in Standard Additions file read/write commands?
Re: How to use delimiters in Standard Additions file read/write commands?
- Subject: Re: How to use delimiters in Standard Additions file read/write commands?
- From: Bill Briggs <email@hidden>
- Date: Mon, 19 Mar 2001 11:46:58 -0400
At 4:41 PM -0800 18/03/01, Devon and Cornwall wrote:
>set thefile to choose file
set filRef to open for access thefile
set thelist to read filRef using delimiter {" "}
close access filRef
thelist
or (a little faster)
set thefile to choose file
set filRef to open for access thefile
set thelist to words of (read filRef)
close access filRef
thelist
The second construction is NOT faster. In fact, it takes twice the
time of the first!
Speed comparisons compared between two parties running different
machines and in different environments are largely pointless because
there are too many variables that dictate the results you're seeing.
- web
who thinks the fellow on the list whose initials are NG is good at
squeezing out the last tick. ;-)