Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. minetest.after(0, function()
  2.     file = io.open(minetest.get_worldpath() .. "/file.txt", "w")
  3.     io.input(file)
  4.     io.output(file)
  5.     stat_count = minetest.deserialize(tostring(io.read("*all")
  6. end)
  7.  
  8. -- Writing stat_count to a file says "return nil"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement