Advertisement
Guest User

elotto

a guest
Mar 4th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. --Variables
  2. local pl = peripheral.wrap("left")
  3. local mon = peripheral.wrap("monitor_35")
  4. local tab = {}
  5. local butMA = {}
  6.  
  7. --Functions
  8.  
  9. function save()
  10.  local file = fs.open("Data","w")
  11.  file.write(textutils.serialize(tab))
  12.  file.close()
  13. end
  14.  
  15. function load()
  16.  local file = fs.open("Data","r")
  17.  local dataF = file.readAll()
  18.  file.close()
  19.  return textutils.unserialize(dataF)
  20. end
  21.  
  22.  
  23. --Code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement