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

Write string and new line 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. This function also writes a carriage return and a line feed to the file following the string data. The total number of bytes written is returned in the cnt parameter.

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