READ This command will read next available item from the DATA statement in your program and place the resulting data in a specified variable.
Syntax
    READ Variable
Parameters
    Variable
Double Integer Specify the variable that stores the value.
Returns
This command does not return a value.
Description
You can create DATA statements using the DATA command, and you can reset the pointer to the data using the RESTORE command. You can read the data as integer numbers, real numbers or strings but you must ensure the DATA statements data types are in the same order as your program reads them. If you read data into a variable of the wrong type, a zero value or empty string is written into the variable.
Example Code
    READ A,B,C

    PRINT A

    PRINT

    PRINT C

    WAIT KEY

    END

    DATA 42,21,10
See also
CORE Commands Menu Index