Creates a new FileData object from a file on disk, or from a string in memory.
Creates a new FileData object from a string in memory.
data = love.filesystem.newFileData( contents, name )
string contentsstring nameFileData 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 filepathFileData datastring err Removed in LÖVE 11.0
The variant which decodes base64 data has been replaced by love.data.decode.
data = love.filesystem.newFileData( contents, name, decoder )
string contentsstring nameFileDecoder decoderFileData data
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.newFileData