• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to use delimiters in Standard Additions file read/write
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use delimiters in Standard Additions file read/write


  • Subject: Re: How to use delimiters in Standard Additions file read/write
  • From: Devon and Cornwall <email@hidden>
  • Date: Mon, 19 Mar 2001 18:14:30 -0800

At 9:04 AM -0800 3/19/01, Paul Berkowitz wrote:

> using delimiter {" "}
>
>should be either
>
> using delimiter " "
>
>or
>
> using delimiters {" "}
>
>Maybe that's got something to do with it?

It doesn't matter if I make delimiter plural or not. The compiler removes the s.

Using AS 1.6:

set thefile to choose file
set filRef to open for access thefile
set thelist to read filRef using delimiter *
close access filRef
thelist

--set thelist to read filRef as list using delimiter *
--{{"If"}, {"you"}, {"know"}, {"where"}, {"to"}, {"look"}, {"for"}} -- {" "}
--{{"If"}, {"you"}, {"know"}, {"where"}, {"to"}, {"look"}, {"for"}} -- " "

--set thelist to read filRef using delimiter *
--{"If", "you", "know", "where", "to", "look", "for"} -- {" "}
--{"If", "you", "know", "where", "to", "look", "for"} -- " "

Devon


References: 
 >Re: How to use delimiters in Standard Additions file read/write (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Best way to test machine has connection to the internet
  • Next by Date: Re: Read File Problems
  • Previous by thread: Re: How to use delimiters in Standard Additions file read/write
  • Next by thread: Re: How to use delimiters in Standard Additions file read/write
  • Index(es):
    • Date
    • Thread