Skip to main content
Writes Lua string bytes to a file inside the workspace, creating missing parent directories and replacing the file contents if the file already exists.

Syntax

Aliases

  • writefileasync

Arguments

Example

Write bytes to a workspace file and replace any existing contents.