fclose - Close open target PC file(s)

Syntax

MATLAB® command line

fclose(filesys_obj,file_ID)
filesys_obj.fclose(file_ID)

Arguments

filesys_obj

Name of the xpctarget.fs file system object.

file_ID

File identifier of the file to close.

Description

Method of xpctarget.fs objects. From the host PC, closes one or more open files in the target PC file system (except standard input, output, and error). The file_ID argument is the file identifier associated with an open file (see fopen and filetable). You cannot have more than eight files open in the file system.

Examples

Close the open file identified by the file identifier h in the file system object fsys.

fclose(fsys,h) or fsys.fclose(h)

See Also

xPC Target™ file object methods fopen, fread, filetable, and fwrite.

MATLAB fclose function.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS