SHARE
TWEET

startup.lua

a guest May 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local table = {"Aus","An"}
  2.  
  3. saveTable()
  4.  
  5. function loadTable()
  6. local file = fs.open("data", r)
  7. local data = file.readAll()
  8. file.close()
  9. return textutils.unserialize(data)
  10. end
  11.  
  12. function saveTable()
  13. local file = fs.open("data", w)
  14. file.write(textutils.serialize(table))
  15. file.close()
  16. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top