writefile apply.
Parameters
string
required
The file path.
string
required
The string to append.
Example
Errors
Related
writefile: overwrite instead.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Append a string to a file.
appendfile(path: string, contents: string) -> ()
writefile apply.
appendfile("log.txt", os.date() .. " started\n")
| Message | Condition |
|---|---|
argument 1 must be a string path | Argument 1 was not a string. |
argument 2 must be the string to append | Argument 2 was not a string. |
that file extension is not allowed in the workspace | The extension is not permitted. |
that path could not be appended to | The file could not be appended. |
writefile: overwrite instead.