Toshiba KB-80 Computer Keyboard User Manual


 
- 16 -
CLOSE
Function Close a file.
Format CLOSE [ [#] <file number> [, [#] <file number> ] ···]
Term <file number>: The number assigned to the file or the device by the OPEN
statement
Explanation The file corresponding to <file number> is closed. One or more <file number>s can
be specified once in the CLOSE statement. If <file number> is omitted, all opened
files are closed.
Once a file has been closed, its number can be used for opening another file. The
closed file can be opened by specifying the same file number as the previous one or
a different file number.
For a file that has been opened for an output, the data remaining in the buffer is
output by the CLOSE statement.
The END statement closes all opened files automatically.