Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function receive()
- while true do
- id,msg = rednet.receive()
- if msg == ("file") then
- print("readying to transfer...")
- id,msg = rednet.receive()
- filename = msg
- id,msg = rednet.receive()
- print("received file.. copying...")
- time = os.time()
- file = fs.open(filename, "w")
- file.write(msg)
- file.close()
- print("copyied")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment