The out put of my script is...
Code: Select all
desX = { 289,298,1,301,309,1, };
desY = { 322,317,1,320,320,1, };
This is what i use to right to my file...
Code: Select all
file:write("desX = { ");
file:write(listX);
file:write("\b };\ndesY = { ");
file:write(listY);
file:write("\b };");
Edit: Awe, I thought i might be wrong... I was just hoping it was a problem with file:write and not\b...
I changed my code to this and have nothing good to report...
Code: Select all
tmpString = "desX = { " .. listX .. "\b };\n" .. "desY = { " .. listY .. "\b };"
file:write(tmpString);