File
file.write
Shared
Writes content to specified file
Syntax
local status = file.write(path, content)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to write the contents in |
string | content | Content to be written |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | Returns true on successful execution, or false on failure |
Examples
engine.print("File written:", file.read("files/images/test.png"))