In message <[EMAIL PROTECTED]>, Dilwyn Jones 
<[EMAIL PROTECTED]> writes

>>>With SBYTES you can do something like SBYTES ram1_test,address,0
>>>which
>>>creates a not very useful zero length file. But if you try to LBYTES
>>>it back with LBYTES ram1_test,address you get the error message 'end
>>>of file'
>>
>> Seems more like a statement of fact than an error msg.
>Yes, quite right, I hadn't quite thought of it that way :-)
>
>The original bug report said it 'gave an error message at line...'
>which contained an LBYTES statement, so I assumed it was probably a
>corrupt file or some error my program failed to cope with. I asked him
>to send me a copy of the file as I couldn't replicate the error, it
>turned out to be a zero length file, which is how all this came about.
>
>Not to worry, fixed now anyway, and as it was an old program (MDV to
>FLP converter) I've done an updated version with Easyptr, so it'll be
>on my website soon.

Yes, you have the catch the EOF reached yourself, as a the programmer, 
and take some action.
Because BASIC just gives the Error report.

So, something like :

IF EOF (#channel_in%)
     CLOSE (#channel_in%)
     EXIT loop
END IF

-- 
Malcolm Cadman
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to