love.filesystem.newFile( filename )
Creates a new File object.
An error will occur if the specified file does not exist.
Synopsis
file = love.filesystem.newFile( filename )
Parameters
filename |
string |
The filename of the file to read. |
Examples
Open a file and read everything
file = love.filesystem.newFile("data.txt")
data = file:read()