WriteString()
Syntax
Result = WriteString(#File, Text$ [, Format])Description
Write a string to a file.
Parameters
#File The file to write to. Text$ The string to write. Format (optional) The format in which to write the string. It can be one of the following values: #PB_Ascii : Writes the string in ASCII format. #PB_UTF8 : Writes the string in UTF8 format (default). #PB_Unicode: Writes the string in UTF16 format.
Return value
Returns nonzero if the operation was successful and zero if it failed.
Remarks
The file must be opened using a write-capable function (i.e. not with ReadFile()). The null ending string character is not written to the file.
For an example see the CreateFile() function.
See Also
ReadString(), WriteStringN(), WriteStringFormat(), CreateFile()
Supported OS
All