data to the end of the file at path. If the file doesn’t exist, it gets created on the spot - the same way writefile would.
path is relative to Seliware’s workspace folder.
Parameters
Returns
void
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
data to the end of the file at path. If the file doesn’t exist, it gets created on the spot - the same way writefile would.
appendfile(path: string, data: string): ()
path is relative to Seliware’s workspace folder.
| Parameter | Type | Description |
|---|---|---|
path | string | File to append to. |
data | string | Content to append. |
void
appendfile("log.txt", "new log entry\n")
local function log(message)
appendfile("logs/run.log", `[{os.date("%H:%M:%S")}] {message}\n`)
end
log("script started")
log("finished setup")