Advertisement
ecco7777

saveVar, getVar; Funktions

Oct 8th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. function getVar(file, var)
  2. h=fs.open(file,"r")
  3. var=tonumber(h.readLine())
  4. h.close()
  5. end
  6.  
  7. function saveVar(file, var)
  8. h=fs.open(file,"w")
  9. h.writeLine(var)
  10. h.close()
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement