Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4
Armite F4 ArmiteH7 Picomite CMM2
Syntax:
EOF( [#]nbr )
Description:
Will return true if the file previously opened on the SD card for INPUT with the
file number ‘#fnbr’ is positioned at the end of the file.
For a serial communications port this function will return true if there are no characters waiting in the receive buffer.
#0 can be used which refers to the console's input buffer.
The # is optional. Also see the OPEN, INPUT and LINE INPUT commands and the INPUT$ function.
Example reading a full file, one line at a time:
OPEN "temp.bas" FOR INPUT
AS #2
DO WHILE NOT EOF(#2)
LINE INPUT #2, txt$
PRINT txt$
LOOP
CLOSE #2
Last edited: 29 September, 2020