Jump to content

strange problem with "\n"


KagerA

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...