Read
Last Modified: 12/31/2020
Reads data from Data statements.
Arguments
Variable |
Any |
Yes |
The variable where you want to store the read data into. |
Example
Reload MyData
Read x,y
Print x,y
MyData:
Data 1,2,3,4
|
Remarks
If
Variable is an integer, the data will be read and the most significant byte will be set to 0. If it's a string, then the data will be copied into a string one byte after another until a null (0) is reached. SecondBASIC automatically puts a null (0) at the end
of string data.
See Also
Data,
DataFile,
DataInt,
DataLong,
ReadInt,
ReadLong,
Reload,
Restore,
Read(),
ReadInt(),
ReadLong&()