mk90.basic.statements

Statement CLOSE

Close the currently open data file.

Syntax

CLOSE

Parameters

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 END

Limits and diagnostics

No handle argument or CLOSE ALL form.

Status-code reference.

See also

OPEN · GET · PUT · END · Language syntax