Function
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.
Returns
file File The new File object.
Examples
Open a file and read everything
  1. file = love.filesystem.newFile("data.txt")
  2. data = file:read()
Copyright © 2006-2010 LÖVE Development Team.