Changes

Jump to: navigation, search

Locomotive BASIC

262 bytes added, 13:08, 19 January 2012
/* EOF */
: Checks to see if end of specified file has been reached during input. Returns 0 (false) until the end of file, then -1 (true)
 
 
: This example reads a file from disc and print it out on screen. Like the "TYPE" command in CP/M or "|TYPE,file" with the UTOPIA-ROM, but without formatting.
<pre>
10 OPENIN "text.txt"
20 WHILE NOT EOF
30 LINE INPUT#9,a$
40 PRINT a$
50 WEND
60 CLOSEIN
</pre>
==== <code>ERR</code> ====
205
edits