mk90.basic.statements
Statement PUT
Write one byte to the open OUTPUT file.
Syntax
PUT expressionParameters
| Parameter | Meaning |
|---|---|
expression | Integer in the inclusive range 0–255. |
Behavior
Accumulates bytes in a 256-byte buffer. Full sectors are sent to the verified writer; CLOSE or END flushes the final partial sector. The total supplied bytes must match the length declared in OPEN.
An out-of-range byte produces status 35. Too little or too much output prevents successful publication; previously committed file versions are preserved.
Example
10 OPEN "digits",OUTPUT,3
20 PUT 49:PUT 50:PUT 51
30 CLOSE
40 ENDLimits and diagnostics
Requires an OUTPUT data file. This writes binary bytes, not decimal formatting or automatic line endings.
See also
OPEN · CLOSE · GET · Language syntax