File systemReference
writefile
Create or overwrite a workspace file.
Details#
Create or overwrite a workspace file. No return values.
Signature#
writefile(path: string, data: string): ()Parameters#
| Parameter | Type | Description |
|---|---|---|
path | string | UTF-8 path relative to the application's workspace. |
data | string | Raw bytes to write; must be a string. |
Returns#
No return values.
Examples#
Local example
writefile("docs-example/note.txt", "First version")