appendfile
Appends data to the end of a file.
Syntax
appendfile(path: string, data: string) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | A path inside the Yuari workspace. |
data | string | The data payload to process or send. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
appendfile is part of the File system library. File functions are sandboxed to the executor workspace; paths outside it are rejected.
The change is applied directly to the live target, so later reads observe the updated value.
Example
appendfile("logs.txt", "loaded\n")
Notes
- Paths are sandboxed to the executor workspace.