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
| Name | Type | Description |
|---|---|---|
| path | str | The path to the file to be written. |
| mode | str = "w" | The mode in which the file is opened. |
| encoding | str = null | The encoding used to write the file. |
Signature
def FileTextWrite(
path: str,
mode: str = "w",
encoding: str = null
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| path | str | The file system path where the text content will be written. |
| mode | str = "w" | The file opening mode, defaulting to 'w' for writing (overwriting existing content). |
| encoding | str = null | The character encoding used to decode the file, such as 'utf-8'. |