Skip to content

FileSystemManager.appendFile ​

JS
    FileSystemManager.appendFile(Object object)

Appends content to the end of a file

Parameters

  • Object object: Input parameters. See the table below for details.

object properties:

PropertyValue TypeDefaultRequiredDescription
filePathstringYesPath of the file to append content to
datastringYesText or binary data to append
encodingstringutf8NoSpecifies the character encoding for writing the file. See the figure below for valid values.
successfunctionNoCallback for a successful call
failfunctionNoCallback for a failed call
completefunctionNoCallback for when the call ends

Valid values of encoding

ValueDescription
utf8utf-8 character encoding
utf-8utf-8 character encoding
binaryBinary