Input#

Reads in data and assigns it to a variable.

Input# <File No.>,<Variable>[,<Variable>...] 

Parameters
<File No.>
The file number (integer) of the file with the data to be read in.
<Variable>
The variable that will store the value that is read in (integer, double-precision, character string, array).

Return Value
None.

Description
Reads in the comma separated data that exists within the line separated by the line feed code and assigns it to a variable.
The number of the blocks of data separated by commas and the number of Variables must be equal.When they differ, it becomes an "Illegal function call".
Specify the file number of the file with the data to be read in in <File No.>.
When an integer or double-precision data type has been specified for the <Variable> data type and non-numeric character data is input, "0" is input into the <Variable>.This does not generate an error.
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 
            Input #1,DATA$
            DATA$(I&)=DATA$
            if eof(1)<>0 then exit for 
        next 

        close #1