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 :
the \n is still there, saved into the file; the thing is, line breaks differ per OS; windows uses both carriage return and line feed in that order, so you would need to insert \r\n instead of just \n... (linuxes/unices use just \n, and old macos used just \r, idk if OS X uses \n or not though)
that said, in most cases, people indeed just use \n and use a text/code editor that has an option (or auto-detection) regarding what character is used for newlines.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.