lovr.filesystem.read
EditRead the contents of a file.
contents, error = lovr.filesystem.read(filename)Arguments
| Name | Type | Description |
| filename | string | The name of the file to read. |
Returns
| Name | Type | Description |
| contents | string | nil | The contents of the file, or nil if the file could not be read. |
| error | string | nil | The error message, if any. |