Line Input#
Reads data of one line from a file
Line Input# <File No.>,<Charater Variable>
Parameters
<File No.>
|
The file number (integer) of the file with the data to be read in.
|
<Charater Variable>
|
The variable that will store the value that is read in (character string)
|
Return Value
None.
Description
Reads data that exists within the line separated by the line feed code and assigns it to a charater Variable.
<Charater Variable> is less than 255 characters, which includes strings such as space, comma(,), double quotation marks("), and numbers.
When input carriage return(chr$(13)) in <Charater Variable>, null string("") is the return value.
When character strings are enclosed within double quotation marks (" "), the double quotation marks are also recognized as characters.
Example
Read in data until the end of the file.
open "/c0/input.dat" for Input as #1
for I&=0 to 255
Line Input #1,DATA$
DATA$(I&)=DATA$
if eof(1)<>0 then exit for
next
close #1