Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 21st Jun 2003 20:18
I normally write file IO using the basic syntax

open file

repeat
read ...

until (EOF)

Close File

I have reviewed the manual and can find no reference to EOF (End Of File )
Anyone know a work around? or do I always have to know the number of records ahead of time?


Thanks in Advance
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 20:55
You can use the FILE END (handle) command

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 21st Jun 2003 21:52
Thanks a lot MrTAToad appears to work, EOF has been around since the earliest BASICS did't think to look for a different function

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 21:57
Well, FILE END is more descriptive...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 22:57 Edited at: 21st Jun 2003 22:58
more descriptive? than end of file? sound about the same to me, anyway, why go creating non standard functions when basic already had EOF?, I find the hugely verbose, non standard commands in DB annoying, it would be nice if you could modify the keywords, they could put them in a file and then you could alter "set object collision to boxes" to "boxcol on", LOL, mind you it would make for interesting swapping of code, loads of threads headed "does anybody know what <insert user acronym here> means?" LOL, maybe not such a good idea after all.

Mentor.

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 23:33
EOF to the beginner would be meaningless.
FILE END to the beginner is meaningful.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 14:55:27
Your offset time is: 2026-07-11 14:55:27