| MATLAB Function Reference | ![]() |
status = fclose(fid)
status = fclose('all')
status = fclose(fid) closes the specified file if it is open, returning 0 if successful and -1 if unsuccessful. Argument fid is a file identifier associated with an open file. (See fopen for a complete description of fid).
If fid does not represent an open file, or if it is equal to 0, 1, or 2, then fclose throws an error.
status = fclose('all') closes all open files (except standard input, output, and error), returning 0 if successful and -1 if unsuccessful.
ferror, fopen, fprintf, fread, frewind, fscanf, fseek, ftell, fwrite
![]() | false | fclose (serial) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |