The best way to know end of file

Post Reply
luizsiqueiraneto
Posts: 1
Joined: Sun Jul 28, 2013 1:12 pm

The best way to know end of file

Post by luizsiqueiraneto »

I really love Smart Basic, it solve my problems, thanks. currently I set the last register as a "<end>" string, it works right but I ask myself if don't exist a better way to do this.
What should be a good way to avoid an error on end of file?

Thanks.

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: The best way to know end of file

Post by Dalede »

Version 2.3 will have a better answer. Check the thread on the 2.3 release.

Dale

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: The best way to know end of file

Post by Mr. Kibernetik »

In version 2.3 new function will be implemented:
DATA_EXIST(n$)
returns 1 if data in file [n$] when using command FILE INPUT are available. Otherwise it returns 0.

Post Reply