Guest User

getFile

a guest
Oct 11th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. Id, Name, Dis = rednet.recieve(timeout)
  2. Id, Code, Dis = rednet.redieve(timeout)
  3.  
  4. print("Code from ID: "..Id)
  5. print("Code will be saved as "..Name)
  6. sleep(0.5)
  7.  
  8. file = fs.open(Name, "w")
  9. file:write(Code)
  10. file:close
  11.  
  12. print("Saved as "..Name)
Advertisement
Add Comment
Please, Sign In to add comment