Skip to main content

FileTextWrite

You can use this class for writing text. Alternatively, you can use FileText with mode="w". The default mode of this class is mode="w".

Constructor

Signature

def FileTextWrite(
path: str,
mode: str = "w",
encoding: str = null
) - > null

Parameters

NameTypeDescription
pathstrThe path to the file to be written.
modestr = "w"The mode in which the file is opened.
encodingstr = nullThe encoding used to write the file.

Signature

def FileTextWrite(
path: str,
mode: str = "w",
encoding: str = null
) - > null

Parameters

NameTypeDescription
pathstrThe file system path where the text content will be written.
modestr = "w"The file opening mode, defaulting to 'w' for writing (overwriting existing content).
encodingstr = nullThe character encoding used to decode the file, such as 'utf-8'.