mk90.basic.statements
Statement CLOSE
Close the currently open data file.
Syntax
CLOSEParameters
No parameters.
Behavior
For OUTPUT, flushes pending bytes and commits only a complete, verified file. For INPUT, closes the reader. The executable’s own reader remains open until the program exits.
Calling CLOSE without an open data file is status 38. END/STOP automatically closes a data file; SU+C or errors abort unpublished output.
Example
10 OPEN "empty",OUTPUT,0
20 CLOSE
30 ENDLimits and diagnostics
No handle argument or CLOSE ALL form.
See also
OPEN · GET · PUT · END · Language syntax