Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- local pl = peripheral.wrap("left")
- local mon = peripheral.wrap("monitor_35")
- local tab = {}
- local butMA = {}
- --Functions
- function save()
- local file = fs.open("Data","w")
- file.write(textutils.serialize(tab))
- file.close()
- end
- function load()
- local file = fs.open("Data","r")
- local dataF = file.readAll()
- file.close()
- return textutils.unserialize(dataF)
- end
- --Code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement