Go to: Synopsis. Return value. Related. MEL examples.
fclose
<int>
fclose is undoable, queryable, and editable.
This command must be called with the file identifier returned by fopen after all file input/output is completed.// Write some data to a file and then close it // $exampleFileName = ( `internalVar -userTmpDir` + "example.tmp" ); $fileId=`fopen $exampleFileName "w"`; fprint $fileId "Hello there\n"; fclose $fileId;