MinePossu

setup

Apr 18th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. fs.delete("/void/void")
  2.  
  3. function downloadFile(path, url)
  4.         print("Downloading: " .. path)
  5.         data = http.get(url).readAll()
  6.         file = assert(io.open(path, "w"))
  7.         file:write(data)
  8.         file:close()
  9. end
  10.  
  11. downloadFile("/void/void", "https://pastebin.com/raw/Z9d6fqRN")
Add Comment
Please, Sign In to add comment