Close
General Operation Statement
The Close statement closes a file that has previously been written to with Write, Writeline, Xwrite, or has been read with Read. Use Close when finished with a file to free system resources.
Syntax
Close <file ID>
Example
Close Arrival_File
Parameters
<file ID>
The desired file identifier as defined in the External Files editor.
Remarks
A closed file is automatically re-opened to be read or written to. All opened files are automatically closed at the end of a simulation. When you are using many external files and you want to conserve system resources, this statement is especially helpful.