fclose(fid)
fclose('all')
status = fclose(fid)
status = fclose('all')
| Parameter | Description |
|---|---|
| fid | a file descriptor |
| Parameter | Description |
|---|---|
| status | an integer value: 0 if file is closed or -1 if not. |
fclose must be used to close a file opened by fopen.
fclose('all') closes all opened file with fopen.
fd = fopen([tempdir(), filesep(), 'fclose_tst'],'wt');
status = fclose(fd)
status = fclose(fd)
| Version | Description |
|---|---|
| 1.0.0 | initial version |