Yuari
Documentation
Docs/File system/appendfile

appendfile

Appends data to the end of a file.

Syntax

appendfile(path: string, data: string) -> nil

Parameters

ParameterTypeDescription
pathstringA path inside the Yuari workspace.
datastringThe data payload to process or send.

Returns

TypeDescription
nilThis 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.