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