love.filesystem.write( file, data )
Writes data to an open File.
Usage
love.filesystem.write( file, data )
Arguments
fileThe File to write to.
dataThe data to write.
Returns
booleanTrue if the operation was successful.
Examples
Example 1: Writing data to files.
function save_highscore()
local file = love.filesystem.newFile("highscore.lua", love.file_write)
love.filesystem.open(file)
love.filesystem.write(file, "highscore = { bob = 5, tom = 200, jane = 4000 }")
love.filesystem.close(file)
end