Go to: Synopsis. Return value. Related. MEL examples.
fwrite int
int|float|string|vector
fwrite is NOT undoable, NOT queryable, and NOT editable.
The fwrite command writes the data argument in binary format to a file. Strings are written as ascii terminating with a NULL character.None
// Write some data into a file // $exampleFileName = ( `internalVar -userTmpDir` + "example.tmp" ); $fileId=`fopen $exampleFileName "w"`; fwrite $fileId "Hello there\n"; fclose $fileId;