Input - Sharp MZ-700 Basic Manual

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

Advertisement

INPUT # (Input)
Reads out data from BSO file.
Format:
INPUT # <logical number>,<variable>,<variable>, .....
Abbreviated form:
1.#
Explanation:
47
• Reads out data in sequence from heading of file opened for read-out by ROPEN #
statement and is set to <variable>.
• <variable> may be array element.
• The file which reads out the data becomes the file set to <logical number> by
ROPEN # statement.
• In the same way as for READ - DATA statements, error is generated if data and
<variable> data type do not coincide.
• The end of the file data can be determined by the EOF function.
However, for FD device only.
Example:
1 0
ROPEN
#2, "DATA"
20
I NP UT
#2,A,B,C
30
PRI NT
A,B,C
40
CLOSE
#2
50
END
..... Reads out numerical data from BSD file opened for read-out by logical number 2,
and substitutes to numerical variables A, Band C.
References:
ROPEN # (page 46)
CLOSE # (page 53)
EOF (#)
(page 56)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents