appendfile
appendfile appends string content to the end of a file at the specified path. If the file does not exist, it will be created.
This is useful for logging, accumulating data over time, or extending file contents without overwriting them.
Parameters
| Parameter | Description |
|---|---|
path |
The file path to append to. |
contents |
The string content to add to the file. |