How do I append to a new line using love.filesystem.append?
Posted: Fri Jun 19, 2020 11:56 am
I am making a random color generator where no two colors are the same. I am having problems with appending to a new line. I've tried using this advice : https://www.reddit.com/r/love2d/comment ... _log_file/, but adding "\n" at the beginning or end of the string does nothing. So my question is, how do I append to a new line?
By the way, here is the code that does the appending :
By the way, here is the code that does the appending :
Code: Select all
local string = tostring(generated_color[1]) .. "," .. tostring(generated_color[2]) .. "," .. tostring(generated_color[3]) .. "\n"
love.filesystem.append("colors.txt",string)