MATLAB Function Reference
  Go to function:
    Search    Help Desk 
fclose    See Also

Close one or more open files

Syntax

Description

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).

status = fclose('all') closes all open files, (except standard input, output, and error), returning 0 if successful and -1 if unsuccessful.

See Also

ferror, fopen, fprintf, fread, fscanf, fseek, ftell, fwrite



[ Previous | Help Desk | Next ]