Previous topic

text_file_read

Next topic

tic

This Page

text_file_writeΒΆ

text_file_write writes text into a file in ANSI - or Unicode format.

bool = text_file_write(ssFilename, ssText)
bool = text_file_write(ssFilename, ssText, ssEncoding)
bool = text_file_write(ssFilename, ssText, ssEncoding, ssNewline)

Return Value

bool.

Parameters

ssFilename

ssFilename is the complete file name. If the file already exists the file will be overwritten.

ssText

ssText is the text.

ssEncoding

ssEncoding is one of the following strings:

Value Meaning
ansi default value
utf8bom  
utf8  
utf16le  
utf16lebom  
utf16  
utf16bom  
ssNewline

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

id-847459