KagerA Posted August 11, 2010 Share Posted August 11, 2010 I'm trying to write info to a text file, everything is fine, but i can't move to the next string. "\n" just adds an unkown symbol (something like [] ) to the output file. local newFile; if fileExists("loot.txt") then newFile = fileOpen("loot.txt") else newFile = fileCreate("loot.txt") end if newFile then fileSetPos(newFile,fileGetSize(newFile)) outputChatBox("test"); fileWrite(newFile, "Santa \n") fileClose(newFile); end this problem is so weird but i just don't know what to do with it) I tried to change formats to .xml or .lua, didn't work. Link to comment
Remp Posted August 11, 2010 Share Posted August 11, 2010 are you on windows? try '\r\n' Link to comment
KagerA Posted August 11, 2010 Author Share Posted August 11, 2010 helped, thanks) stupid windows >_ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now