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: Devon and Cornwall <email@hidden>
- Date: 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.
Devon and Cornwall
--How do you feel about interpretive dance?