READ
Syntax: READ floatVariable | integerVariable | stringVariable
The READ command reads the next data item specified in the current DATA statement. The DATA statements are read starting from the first and going sequentially through to the last. When there is no data remaining a "Out of Data" error will occur which can be trapped using the TRAP command.
You can tell the interpreter to start reading the data from another line using the RESTORE command.
Example
READ floatVariable
READ intVariable%
READ stringVariable$
|