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.


writeFile filename data

Function parameters:

  • filename is the name of the file.
  • data is the data to be stored.

Return value if successful: none

Necessary permissions: no restrictions


CM>writeFile /tmp/test [obj withId 2001 get exportBlob]