Advertisement
william200027

AutoUpdate A

May 12th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function maj(fichier,url)
  2.  if fs.exists("Config/"..fichier) then
  3.   fs.delete(fichier)
  4.  end
  5.   print("Mon du chifier a jour: "..fichier.." / "..url)
  6.   local content = http.get(url)
  7.   local file = fs.open("Config/"..fichier,"w")
  8.   file.write(content.readLine())
  9.   file.close()
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement