Re: How to use delimiters in Standard Additions file read/write
Re: How to use delimiters in Standard Additions file read/write
- Subject: Re: How to use delimiters in Standard Additions file read/write
- From: Nigel Garvey <email@hidden>
- Date: Mon, 19 Mar 2001 08:30:43 +0000
Devon and Cornwall wrote on Sun, 18 Mar 2001 16:14:27 -0800:
>
At 3:36 PM -0500 3/18/01, Victor Yee wrote:
>
>On Sun, Mar 18, 2001 03:27 PM, I wrote,
>
>
>
> > You have to include the additional parameter "as list".
>
>
>
> > set thefile to choose file
>
> > set thelist to read thefile using delimiter {" "} as list
>
>
>
>It would have been clearer if I'd written:
>
>
>
>set thefile to choose file
>
>set thelist to read thefile as list using delimiter {" "}
>
>
>
>Both work fine, but the latter is more descriptive.
>
>
As list doesn't seem to be necessary - the construction of the
>
statement seems to default to list. Both examples we posted
>
resulted in a list without having to use "as list."
>
>
Perhaps the fellow on the list whose initials are NG could explain why?
>
He is correct about not needing to "open for access" for a simple one
>
time, no file pointer read.
I'm afraid I *can't* explain your results. What Victor and I have
described is exactly what's needed with Mac OSses 8.6 and 9.0.4. Perhaps
it's something that's been "fixed" or altered in 9.1.
The fellow on the list whose intitials are NG