• 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 commands?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. ;-)


  • Follow-Ups:
    • Re: How to use delimiters in Standard Additions file read/write commands?
      • From: Devon and Cornwall <email@hidden>
References: 
 >How to use delimiters in Standard Additions file read/write commands? (From: Charles Arthur <email@hidden>)
 >Re: How to use delimiters in Standard Additions file read/write commands? (From: Devon and Cornwall <email@hidden>)
 >Re: How to use delimiters in Standard Additions file read/write commands? (From: Devon and Cornwall <email@hidden>)

  • Prev by Date: Re: saved application doen't work but ready-made does
  • Next by Date: Re: DD progress bar [Addendum]
  • Previous by thread: Re: How to use delimiters in Standard Additions file read/write commands?
  • Next by thread: Re: How to use delimiters in Standard Additions file read/write commands?
  • Index(es):
    • Date
    • Thread