Available for: Content Management Server, Template Engine
Task: Stores text data to a file.
Syntax:
writeTextFile filename data [charset]
Function parameters:
filename
is the name of the file.data
is the data to be stored.charset
specifies the name of the
character encoding in which the data is to be stored. This parameter is
optional. Its default value is utf-8
.Return value if successful: none
Necessary permissions (CM only): no restrictions
Example:
writeTextFile /tmp/text {This is an example}