Advertisement
guitarplayer616

backgroundInstall*

Jun 22nd, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local key = --pastebin key goes here
  2. local file = --filename goes here
  3.  
  4. local h = http.get("http://pastebin.com/raw/"..textutils.urlEncode(tostring(key)))
  5. local code = h.readAll()
  6. h.close()
  7.  
  8. local new = fs.open(tostring(file),"w")
  9. new.write(code)
  10. new.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement