FileSystemManager.appendFileSync
JS
FileSystemManager.appendFileSync(
string filePath,
string | ArrayBuffer data,
string encoding)Appends content to the end of a file
The synchronous version of FileSystemManager.appendFile
Parameters
string filePath: Path of the file to append content to
string|ArrayBuffer data: Text or binary data to append
string encoding: Specifies the character encoding for writing the file. See the figure below for valid values.
Valid values of encoding
| Value | Description |
|---|---|
| utf8 | utf-8 encoding |
| utf-8 | utf-8 encoding |
| binary | Binary |
Parameters for caught exceptions
- string error: Returns error information. See the figure below for valid values.
Valid values of error:
| Error Information | Description |
|---|---|
| no such file or directory | The specified filePath file does not exist, or is a directory |
| permission denied | No write permission for the specified target file path |
