Write data to a file in the save directory. If the file existed already, it will be completely replaced by the new contents.
success = love.filesystem.write( name, data, size )
string namestring datanumber size (all)boolean successsuccess = love.filesystem.write( name, data, size )
string nameData datanumber size (all)boolean successIf you are getting the error message "Could not set write directory", try setting the save directory. This is done either with love.filesystem.setIdentity or by setting the identity field in love.conf.
Writing to multiple lines: In Windows, some text editors (e.g. Notepad) only treat CRLF ("\r\n") as a new line.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.write