Advertisement
Guest User

softdl

a guest
Mar 9th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local component = require "component"
  2. local event = require "component"
  3. local fs = require "filesystem"
  4.  
  5. local modem = component.modem
  6. local tArgs = {...}
  7.  
  8. function setup()
  9.  modem.open(99)
  10.  fObject = fs.open(tArgs[1],"w")
  11. end
  12.  
  13. function main()
  14.  _, _, _, _, _, _, content = event.pull("modem_message")
  15.  fObject.write(content)
  16.  fObject.close()
  17. end
  18.  
  19. setup()
  20. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement