Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require "component"
- local event = require "component"
- local fs = require "filesystem"
- local modem = component.modem
- local tArgs = {...}
- function setup()
- modem.open(99)
- fObject = fs.open(tArgs[1],"w")
- end
- function main()
- _, _, _, _, _, _, content = event.pull("modem_message")
- fObject.write(content)
- fObject.close()
- end
- setup()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement