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