love.filesystem.newFile


Function

Synopsis

file = love.filesystem.newFile( filename )

Arguments

string filename
The filename of the file to read.

Returns

File file
The new File object.

Examples

Open a file and read everything

file = love.filesystem.newFile("data.txt")
file:open('r')
data = file:read()

See Also