I’m trying to put a bunch of variables into a text file. I had 77 Variables at one point and everything worked fine. I just added 36 more and I now get a ‘Too Many Syntax Levels’ error. What’s wrong?Any Help would be appreciated. Thanks.
local composer = require("composer") local scene = composer.newScene() local file local i=1 path = system.pathForFile("test3.txt",system.DocumentsDirectory) if file then composer.gotoScene("kite") else file=io.open(path,"w") file:write("red".."\n".."red".."\n".."red".."\n".."red".."\n".."red".."\n".."red".."\n".."red".."\n".."red" .."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n" .."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n" .."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n" .."2".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n" .."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".. "\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n" .."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n" .."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0".."\n".."0") io.close(file) composer.gotoScene("forward") end