Re: End of file??
Re: End of file??
- Subject: Re: End of file??
- From: Jolly Roger <email@hidden>
- Date: Tue, 30 Oct 2001 11:53:10 -0600
On 10/30/2001 11:16 AM, "Jan Erik Mostrvm" <email@hidden> wrote:
>
Probably a stupid question (I mist have done this before sometime) but how do
>
I detect if I'm at EOF?
You probably want to trap for the EOF error with a try block, noting that
the EOF error number is -39:
set reading to true
repeat while reading
try
log (read fileReference until return)
on error number -39 -- EOF error
set reading to false
end try
end repeat
HTH
JR