Go to: Synopsis. Return value. Related. MEL examples.
fclose int
fclose is NOT undoable, NOT queryable, and NOT editable.
This command must be called with the file identifier returned by fopen after all file input/output is completed.int |
// 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;