Function group Execute on client Platform(s)
FileOps NO All




Writes data to the open file associated with the object. Binary xVariable contains the data to write to the file. Returns kTrue for success.

You are recommended to use $writecharacter() to write character data, otherwise you may get unexpected results. 

By default, $writefile() writes the data starting at the current position. You can specify an alternative position using the iStartPos parameter. 

$writefile() returns a boolean value, which is true if the data was successfully written. After writing the data, the current position addresses the byte after the last byte written, or end of file.