Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sd = {...}
- function load()
- local file = fs.open(sd[1],"r")
- local data = file.readAll()
- file.close()
- return textutils.unserialize(data)
- end
- f=0
- load()
- for i = 1,1001 do
- if data[i] then
- f = f+i
- print(f)
- else break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement