Advertisement
Guest User

Untitled

a guest
May 26th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. tape = peripheral.find("tape_drive")
  2.  
  3. url = "https://drive.google.com/uc?export=download&id=1GKmk3uCJTD_rZSVFHIbJFm9uA-HRn3FN"
  4. local response = http.get(url, nil, true) -- THIS IS IMPORTANT
  5.  
  6. tape.seek(-tape.getPosition()) --Rewind to start
  7. tape.write(response.readAll())
  8. response.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement