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.
- Parameters
-
handle | The file handle. |
str | The string to write to the file. |
cnt | The number of bytes actually written to the file. |
- Returns
- The function call result. See Loader module error codes.
- Examples:
- ex_WriteLnString.nxc.