love.filesystem.newFile( filename, mode )
Usage
love.filesystem.newFile( filename, mode )
Arguments
filenameThe filename of the File.
modelove.file_read, love.file_write or love.file_append.
Returns
FileThe newly created file.
Examples
Example 1: Creating a new file.
function load()
file = love.filesystem.newFile("data.dat", love.file_write)
love.filesystem.open(file)
-- Yaay, we can write to file.
love.filesystem.close(file)
end