File
EditA File is an object that provides read or write access to a file on the filesystem.
Constructor
lovr.filesystem.newFile | Open a file, returning a `File` object. |
Methods
File:getMode | Get the mode the file was opened in. |
File:getPath | Get the file's path. |
File:getSize | Get the size of the File. |
File:isEOF | Check if the end of the file has been reached. |
File:read | Read data from the file. |
File:seek | Seek to a position in the file. |
File:tell | Get the seek position of the file. |
File:write | Write data to the file. |