Write bytes to file.
Write the contents of the data array to the file associated with the specified handle. The handle parameter must be a variable. The cnt parameter must be a variable. The data parameter must be a byte array. The actual number of bytes written is returned in the cnt parameter.
- Parameters
-
handle | The file handle. |
buf | The byte array or string containing the data to write. |
cnt | The number of bytes actually written to the file. |
- Returns
- The function call result. See Loader module error codes.
- Examples:
- ex_WriteBytes.nxc.