EasyManua.ls Logo

Sharp MZ-700 - Eof(#)

Sharp MZ-700
109 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Other manuals for Sharp MZ-700

Related product manuals