File systemReference
appendfile
Append bytes to a workspace file.
Details#
Append bytes to a workspace file. No return values.
Signature#
appendfile(path: string, data: string): ()Parameters#
| Parameter | Type | Description |
|---|---|---|
path | string | UTF-8 path relative to the application's workspace. |
data | string | Bytes appended to the end; no automatic newline. |
Returns#
No return values.
Examples#
Local example
writefile("docs-example/log.txt", "first\n")
appendfile("docs-example/log.txt", "second\n")