Purpose
Closes an open file.
Syntax
Close File [ # ] filenum
filenum is an integer number identifying which file to close.
Description
The Close File statement closes a file which was opened through the Open File statement.
Note: The Open File statement and Close File statement operate on files in general, not on MapInfo Pro tables. MapBasic provides a separate set of statements (e.g., Open Table statement) for manipulating MapInfo tables.
Example
Open File "cxdata.txt" For INPUT As #1
'
' read from the file... then, when done:
'
Close File #1
See Also: