Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
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