mk90.basic.statements

Statement READ

Read the next numeric DATA items.

Syntax

READ destination [, destination ...]

Parameters

ParameterMeaning
destinationA scalar or indexed array element.

Behavior

Each destination consumes one item. The data cursor is independent of the execution PC. Exhaustion returns status 40; previously assigned destinations remain assigned.

Example

DIM A(1)
READ A(0),A(1)
PRINT A(1)
END
DATA 12,34

Limits and diagnostics

Arrays must already be dimensioned. This is separate from file GET.

Status-code reference.

See also

DATA · RESTORE · GET · Language syntax