mk90.basic.statements
Statement GET
Read one byte from the open INPUT file.
Syntax
GET variableParameters
| Parameter | Meaning |
|---|---|
variable | Destination A–Z; receives 0–255. |
Behavior
Uses a 256-byte internal cache. Reading past EOF produces status 38; check the EOF expression before the next GET. The underlying file reader checks data integrity as it reaches EOF.
Example
10 OPEN "bytes",INPUT
20 IF EOF THEN 60
30 GET A
40 PRINT A
50 GOTO 20
60 CLOSE
70 ENDLimits and diagnostics
Requires an INPUT data file. There is no file-number argument or string GET.
See also
OPEN · CLOSE · PRINT · Language syntax