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.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