Available for: Content Management Server, Template Engine
Task: Stores data to a file. The data can be binary, i. e. contain null characters, for example.
Syntax:
writeFile filename data
Function parameters:
-
filenameis the name of the file. -
datais the data to be stored.
Return value if successful: none
Necessary permissions: no restrictions
Example:
CM>writeFile /tmp/test [obj withId 2001 get exportBlob]