Syntax
fileClose(fid)
Package
file
Short Name
close (only when using package) (only when using package)
Description
Closes a previously opened file and removes it from memory.Note:
If you forget to close a file (opened with fileOpen) it will be automatically closed at the end of the script. However, if you are running a script that takes a lot of time to complete, it’s not a good practice to keep it open.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
file id | Integer | Yes | The id of a file opened from a previous step that should be closed. |
Return type
None
Return value has no meaning.
Example
use "file"; int fid = open(filename); //fileOpen fileClose(fid);//full name of the routine