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