Advertisement
Keridos

Untitled

Jan 10th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. Tablecreating File:
  2. local t={}
  3. t.altx=123
  4. t.alty=134
  5. t.altz=145
  6. tstring  = textutils.serialize(t)
  7. f= fs.open("lastpos","w")
  8. f.writeLine(tstring)
  9. f.close()
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. Other File:
  19.  
  20. f = fs.open("lastpos","r")
  21. tstring = f.readLine()
  22. f.close()
  23. t = textutils.unserialize(tstring)
  24. write(tostring(t.xalt))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement