Indicates the end of file reading.
EOF ( file number )
└────┬────┘
Numeric expression
IF EOF(1) THEN END
file number: Numeric expression truncated to an integer in the range of 1 ≦ file number < 2
FOR INPUT
) and for
communications circuits (COM0:
) input/output files.FOR OUTPUT
).10 OPEN "CAS0:TEST" FOR INPUT AS #1
20 INPUT #1, A$
30 PRINT A$
40 IF NOT EOF(1) THEN 20
50 CLOSE
60 END
Reads and displays data in sequential file on cassette tape until no more data remain.