
168
____________________________________________________________________
File I/O statement
CLOSE
Closes file(s).
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
CLOSE [[#]filenumber[,[#]filenumber...]]
Parameter:
Parameter:Parameter:
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
Description:
Description:Description:
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:
Syntax errors:Syntax errors:
Syntax errors:
Error code and message Meaning
error 71: Syntax error
filenumber is missing.
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
3Ah
File number out of range
Reference:
Reference:Reference:
Reference:
Statements: END and OPEN
Kommentare zu diesen Handbüchern