Member of the support class.
status = fclose('all')
status = fclose(fid)
Closes a file.
| Name | Description |
| 'all' | Closes all open files in the current directory. |
| fid | Specifies the identifier for the file you want to close. Use the fopen function to open a file and assign it an identifier. fid is an integer. |
| Name | Description |
| status | Returns 0 if LabVIEW closes the file successfully. Otherwise, this function returns -1. status is an integer. |
If you include this function in a stand-alone application or shared library, 'all' directs LabVIEW to close all open files in the directory where you installed the application or shared library.
fid = fopen('Test.m');
fclose(fid);