love.filesystem.newFileData
Creates a new FileData object from a file on disk, or from a string in memory.
data = love.filesystem.newFileData( contents, name )
contents string The contents of the file in memory represented as a string.
name string The name of the file. The extension may be parsed and used by LÖVE when passing the FileData object into love.audio.newSource.
data FileData The new FileData.
data = love.filesystem.newFileData( originaldata, name )
originaldata Data The Data object to copy into the new FileData object.
name string The name of the file. The extension may be parsed and used by LÖVE when passing the FileData object into love.audio.newSource.
data FileData The new FileData.
data, err = love.filesystem.newFileData( filepath )
filepath string Path to the file.
data FileData The new FileData, or nil if an error occurred.
err string The error string, if an error occurred.