Skip to main content
Writes data to the file at path. Any old contents are replaced. If folders in the path don’t exist yet, they’re created too.
path is workspace-relative. Don’t put "workspace/" in front of it, and "../" won’t get you out of the sandbox.

Parameters

Returns

void

Example

Save the script’s settings as JSON:
writefile always overwrites. Want to add to a file instead of replacing it? Use appendfile.