• 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
Read File Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read File Problems


  • Subject: Read File Problems
  • From: Lyle Petro <email@hidden>
  • Date: Mon, 19 Mar 2001 10:33:23 -0700

Hi,
I would really appreciate some help with syntax problems I am having with the read command. I would like to read a portion of a file into a list. This list would be delimited by the return character. For example:

set chkFile to choose file
set fStart to 1
set fStop to 600
open for access chkFile
set fEnd to get eof chkFile
if fEnd < fStop then set fStop to fEnd
read file chkFile as list using delimiter "\r" from fStart to fStop
close access chkFile

I keep getting parameter errors with all variations of syntax. Am I attempting the impossible using the Standard Read/Write addition?


  • Follow-Ups:
    • Re: Read File Problems
      • From: Chris Nebel <email@hidden>
  • Prev by Date: From Tex-Edit Plus's Dictionary (4.1)
  • Next by Date: Re: DD progress bar [Addendum]
  • Previous by thread: From Tex-Edit Plus's Dictionary (4.1)
  • Next by thread: Re: Read File Problems
  • Index(es):
    • Date
    • Thread