Re: End of file error
Re: End of file error
- Subject: Re: End of file error
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 16 Jan 2001 19:49:08 -0800
On 1/16/01 4:17 PM, "Nigel Garvey" <email@hidden> wrote:
>
3) If you're referring to the file by file specification instead of by
>
'open' reference and the file is still open from having been read through
>
with another reference and the 'read' command adopts the other reference
>
instead of the one you've just opened.
Thank you, Nigel.
That's certainly one to look out for, but wouldn't happen in this particular
script so I'll be OK. Since reading your last post on this topic I always
use the 'open' reference. Thanks for the details, Nigel. I tried Akua's
'open fork from' and 'read data from', which gives "" and doesn't error when
the file is empty. However it also just gave "" when there was lots of text
in the file - don't know why. (Emmanuel will not be surprised, I believe.)
So I'll go back to to the normal read command and trap for error number -39.
Thanks, Shane, too for the quick response.
--
Paul Berkowitz