Eof(#) - Sharp MZ-700 Basic Manual

Disk basic interpreter
Hide thumbs Also See for MZ-700:
Table of Contents

Advertisement

56
EOF (#) (end of file)
Function to locate end of data file data.
Format:
EOF (# <logical number»
Abbreviated form:
EO.(#
Explanation:
• The function used to determine the end of the data for file read-out.
• When read-out continues after the end of data in the data file, there is no error
generation, and 0 or null ("
") is provided as the data value.
• Error is generated, however, when data are read out from CMT.
• This function is used in combination with the IF statement and placed after each
INPUT statement.
Example
10
ROPEN
#3," DATA"
20
I NPUT#3,A
30
IF
EOF( #3) THEN
END
40
PR I NT
A
50
GOTO
20
..... With this program data are read-out in sequence from the "DATA" file and are
displayed on the screen. And, if the read-out data are out of file, this process
should be end.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents