READ
Reads a line of information from an external file into variables in the template. The numeric elements in the input line are separated by blanks or tabs. Reading to a string variable reads the rest of the line.TheREAD
statement can operate as a function that returns eitherstm_success
,stm_cannot_read_file, or stm_end_of_file.
An identifier of type FILE, that points to a file previously opened by the OPEN statement in INPUT modevariable1,
variable2...
In this example,i
is an integer andstr
is a string. This statement, when applied to an input line12
May 2003
, results ini=12, str=’May 2003’
.
●
●