Write data to a file in the save directory. If the file existed already, it will be completely replaced by the new contents.
success, message = love.filesystem.write( name, data, size )
string namestring datanumber size (all)boolean successstring messagesuccess, message = love.filesystem.write( name, data, size )
string nameData datanumber size (all)boolean successstring messageIf 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–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.write