file.file.append
Declaration
lua
file.append(path, content)
Description
Append string to file. Creates file if not exists.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
path | string | Required | — | File path |
content | string | Required | — | Content to append |
Return Values
| Type | Description |
|---|---|
| boolean |
Example
lua
file.append("log.txt", "new line\n")
Notes
Alias:
file.appends().