Skip to main content

Alias

  • writefileasync

Argumentos

string
requerido
File path resuelto dentro del workspace despues de separator normalization, workspace-boundary checks y filename/extension checks. Absolute paths solo se aceptan si resuelven dentro del workspace.
string
requerido
Lua string bytes que se escriben. Los datos se escriben en binary truncate mode; writefile no agrega newlines, BOM bytes, null terminators ni otros extra bytes.

Ejemplo

Escribe bytes en un workspace file y reemplaza cualquier existing contents.