FINPUT

Purpose: Assign text or numeric values to a variable from a disk file.

Format:     FINPUT  variable name

Notes:      variable name is the 8 character name of the variable to contain the numeric value or text string.  To receive text data  from a disk file a  '$'  character must precede the variable name.  Text file data is accessed sequentially for each subsequent  FINPUT  statement.  The  INPUT_FILE  command must be executed prior to reading the first line of disk data.

Example:

# Select a text disk file named 'filedata.txt'.

input_file filedata.txt

# Read 3 consecutive lines of data.

finput flt_value
finput $textvar
finput int_value

# Print out the values.

print "First line: " flt_value
print "Second line: " $textvar
print "Third line: " int_value
pause
exit

Contents of the file filedata.txt:
------------------------------
85.32
c:\fpimage\images\test-00.img
512
------------------------------

See Also:  FPRINT  INPUT_FILE    PRINT_FILE