Specifications

185
Syntax:
CLOSE [[#]filenumber[,[#]filenumber...]]
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
Description:
CLOSE closes file(s) specified by filenumber(s).
The file number(s) closed by the CLOSE statement becomes available for a sub-
sequent OPEN statement.
If no file number is specified, the
CLOSE statement closes all of the opened data
files and device I/O files.
Specifying an unopened file number causes neither operation nor a run-time error.
Syntax errors:
Run-time errors:
Reference:
File I/O statement
CLOSE
Closes file(s).
Error code and message Meaning
error 71: Syntax error filenumber is missing.
Error code Meaning
3Ah
File number out of range
Statements:
END and OPEN