Toshiba KB-80 Computer Keyboard User Manual


 
- 37 -
INPUT#
Function Reads data from the sequential file, and assigns it to a variable.
Format INPUT# <file number>, <variable> [, <variable> ] ···
Term <file number>: The number assigned to the file by the OPEN statement
<variable>: The variable name to which data is assigned.
A numeric variable or character variable
Explanation The data should be read from the sequential file on the disk or the RS-232C
communication device. The type of <variable> should match the type of data.
How to fetch the input data is shown below.
Type
Code ignored the leading
character of the character string
Delimiter Remark
Numeric Space
Carriage return (CR)
Line feed (LF)
Comma (,)
Space
Carriage return
Line feed
Character Same as above Comma (,)
Carriage return
Line feed
Max. 255
characters a
variable
“Character” Same as above Double quotation
mark (”)
When the end of file (EOF) is confirmed when reading the data of numeric type or
character type, the data item is delimited at that time. The end of file can be
confirmed by the EOF function. In reading the data of character type, a space
immediately before a delimiter is ignored.