Read File Problems
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?