Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Address = "n"--web address, dont include any spaces
- local TargetFile = "example" --file to get web design from.
- function Loop()
- local a, b
- repeat
- a, b = rednet.receive()
- until b == "web_request"
- local file = fs.open(TargetFile,"r")
- local Contents = file.readAll()
- file.close()
- rednet.send(a,Contents)
- Loop()
- end
- rednet.host("1000",Address)
- Loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement