# READ

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
READ variable[, variable]...
RESTORE line/label

Description:
READ variable[, variable]...
Reads values from DATA statements and assigns these values to the named variables.
Variable types in a READ statement must match the data types in DATA statements as they are read

RESTORE line/label
Resets the line and position counters for the READ statement.
If ‘line’ is specified the counters will be reset to the beginning of the specified line. ‘line’ can be a line number or label.
If ‘line’ is not specified the counters will be reset to the start of the program.

RESTORE names
DO
READ thisname$
PRINT thisname$
LOOP UNTIL thisname$ = "END"
names:
DATA "Barney Rubble", "Fred Flintstone", "Wilma Flintstone"
DATA "Betty Rubble","END"

Last edited: 29 September, 2020