Writes the text to a file in UTF-8 without a Byte Order Mark.

Syntax

Smartsite SXML CopyCode image Copy Code
filesystem.writetext(string path, string data)
filesystem.writetext(string path, string data, enum encoding)
filesystem.writetext(string path, string data, enum encoding, boolean writeByteOrderMark)

Parameters

Name Data Type Description
path String The file path.
data String The string written to the file.
encoding Enum The encoding used to write the file.
Enum values:
  • Ascii
    Ascii encoding
  • Utf7
    Utf-7 encoding
  • Utf8
    Utf-8 encoding
  • Utf16
    Utf-16 encoding
  • Utf32
    Utf-32 encoding
writeByteOrderMark Boolean True if a Byte Order Mark should be written to the file, false otherwise.

Return Value

None.
SXML