I’m trying to write information to a file using the file:write function but whenever I do so it will continue printing to the document with no spaces or line breaks despite having \n in the string. If anyone knows why this is the case can you please let me know. I don’t know if I should ask this here or on a general LUA forum. If you need my code or anything else please let me know.
Would be cool to see your code if possible because my \n work pretty well, I use it in only one case, for me its the client sending a string with \n to the server
Solved using
file:write("Text text text and some more text "..TextVar.." text text \r\n")
instead of
file:write("Text text text and some more text "..TextVar.." text text \n")