text_file_write writes text into a file in ANSI - or Unicode format.
Return Value
bool.
Parameters
ssFilename is the complete file name. If the file already exists the file will be overwritten.
ssText is the text.
ssEncoding is one of the following strings:
| Value | Meaning |
|---|---|
| ansi | default value |
| utf8bom | |
| utf8 | |
| utf16le | |
| utf16lebom | |
| utf16 | |
| utf16bom |
ssNewline is one of the following strings:
| Value | Meaning |
|---|---|
| “default” | default value |
| “crlf” | |
| “cr” | |
| “lf” |
Example
ssText = "[[This is
a text]]";
text_file_write("c:/test.txt", ssText, "ansi", "default")
History
| Version | Description |
|---|---|
| 5.0.0 | New |
See also
id-847459