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

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