File

Edit

A File is an object that provides read or write access to a file on the filesystem.

Constructor

lovr.filesystem.newFileOpen a file, returning a `File` object.

Methods

File:getModeGet the mode the file was opened in.
File:getPathGet the file's path.
File:getSizeGet the size of the File.
File:isEOFCheck if the end of the file has been reached.
File:readRead data from the file.
File:seekSeek to a position in the file.
File:tellGet the seek position of the file.
File:writeWrite data to the file.

See also