Page 1 of 1

The best way to know end of file

Posted: Tue Jul 30, 2013 4:51 pm
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.

Re: The best way to know end of file

Posted: Tue Jul 30, 2013 10:54 pm
by Dalede
Version 2.3 will have a better answer. Check the thread on the 2.3 release.

Dale

Re: The best way to know end of file

Posted: Thu Aug 22, 2013 9:13 am
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.