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:
| Property | Value Type | Default | Required | Description |
|---|---|---|---|---|
| filePath | string | Yes | Path of the file to append content to | |
| data | string | Yes | Text or binary data to append | |
| encoding | string | utf8 | No | Specifies the character encoding for writing the file. See the figure below for valid values. |
| success | function | No | Callback for a successful call | |
| fail | function | No | Callback for a failed call | |
| complete | function | No | Callback for when the call ends |
Valid values of encoding
| Value | Description |
|---|---|
| utf8 | utf-8 character encoding |
| utf-8 | utf-8 character encoding |
| binary | Binary |
