Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.find("modem")
- m.open(150)
- while true do
- a,b,c,d,e = os.pullEvent("modem_message")
- if e == "REQFILE" then
- local file = fs.open("/prog","r")
- local f = file.readAll()
- file.close()
- m.transmit(c,c,f)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement