NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned int WriteString ( byte  handle,
const string &  str,
unsigned int &  cnt 
)
inline

Write string to a file.

Write the string to the file associated with the specified handle. The handle parameter must be a variable. The count parameter must be a variable. The str parameter must be a string variable or string constant. The actual number of bytes written is returned in the cnt parameter.

Parameters
handleThe file handle.
strThe string to write to the file.
cntThe number of bytes actually written to the file.
Returns
The function call result. See Loader module error codes.
Examples:
ex_WriteString.nxc.