writefile
Creates or replaces a workspace file.
Paths must remain inside the workspace. Writes to executable/script-launching and other blocked extensions are refused.
writefile(path: string, contents: string): ()Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Path relative to the Acedia workspace. |
contents | string | Bytes to write. |
Example
writefile("example.txt", "first version")Errors: An invalid path or failed write raises an error.
Aliases: writefileasync.
