NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned int WriteBytesEx ( byte  handle,
unsigned int &  len,
const byte &  buf[] 
)
inline

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
handleThe file handle.
lenThe maximum number of bytes to write on input. Returns the actual number of bytes written.
bufThe byte array or string containing the data to write.
Returns
The function call result. See Loader module error codes.
Examples:
ex_WriteBytesEx.nxc.