data = 0local fh = fs.open("data", "w")fh.writeLine(data)fh.close()local fh = fs.open("data", "r")data = tonumber(fh.readLine())fh.close()print(data)