Write data to a file.
success, err = File:write( data, size )
boolean success
string err
success, err = File:write( data, size )
boolean success
string errorstr
Writing to multiple lines: In Windows, some text editors (e.g. Notepad) only treat CRLF ("\r\n") as a new line.
--example f = love.filesystem.newFile("note.txt") f:open("w") for i = 1, 10 do f:write("This is line "..i.."!\r\n") end f:close()
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/(File):write