Toshiba KB-80 Computer Keyboard User Manual


 
- 43 -
LINE INPUT#
Function Reads one whole line (record) (max. 255 characters) from the sequential file.
Format LINE INPUT# <file number>, <character variable>
Term <file number>: The number assigned to the file by the OPEN statement
<character variable>: A character variable to which one whole line is assigned
Explanation The LINE INPUT# statement reads one whole line (record) from the sequential file.
The record of the carriage return (CR) is used as a delimiter which delimits the line.
When the carriage return and line feed is placed in this order, the characters up to
that are read. The next LINE INPUT# statement reads the line up to the next carriage
return.
Both the line feed code and carriage return code are each regarded as one character,
and are stored as part of the character string.
The LINE INPUT# statement is useful when there are many lines in the file.