lovr.filesystem.write
EditWrite to a file.
Arguments
Name | Type | Description |
filename | string | The file to write to. |
content | string | A string to write to the file. |
Returns
Name | Type | Description |
success | boolean | Whether the write was successful. |
Arguments
Name | Type | Description |
filename | string | The file to write to. |
blob | Blob | A Blob containing data to write to the file. |
Returns
Name | Type | Description |
success | boolean | Whether the write was successful. |
Notes
If the file does not exist, it is created.
If the file already has data in it, it will be replaced with the new content.
See also
lovr.filesystem.append
lovr.filesystem.read
lovr.filesystem