Hi guys, this is my first topic here 
I’m developing a simple game, and in my simulator it works greats, but on my device the IO, which i used it to store data on text files, and scrollView are not working.
This is the IO code:
local path = system.pathForFile("data.txt",system.DocumentsDirectory) local goals = 0 local gps = 0 local goalsPerTap = 1 local tacticLvl = 1 local firstShoeLvl = 0 local function UpdateData() local f = io.open(path,"w") f:write(""..gps.."\n"..math.round(goals).."\n"..goalsPerTap.."\n"..tacticLvl.."\n"..firstShoeLvl.."") io.close(f) end local file = io.open(path,"r") if file then gps = file:read() goals = file:read() goalsPerTap = file:read() tacticLvl = file:read() firstShoeLvl = file:read() io.close(file) else UpdateData() end
And this is the scrollView code:
local widget = require( "widget" ) local shopView = widget.newScrollView{ top = goalsT.y + screenH/10, left = 0, width = screenW, height = (screenH/5) \*3, scrollHeight = screenH \* 2, horizontalScrollDisabled = true }