Creates a new FileData object.
data = love.filesystem.newFileData( contents, name, decoder )
string contents
string name
FileDecoder decoder ("file")
FileData data
Available since LÖVE 0.9.0
This variant is not supported in earlier versions.
Creates a new FileData from a file on the storage device.
data, err = love.filesystem.newFileData( filepath )
string filepath
FileData data
string err
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.newFileData