Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- term.clear()
- term.setCursorPos(1, 1)
- print("choix du fichier:")
- choix = read()
- h = fs.open(choix, "r")
- local envoi = {"ftp", "envoi"}
- term.clear()
- term.setCursorPos(1, 1)
- print("ou ?")
- envoi[3] = read()
- ec = 4
- envoi[4] = h.readLine()
- while envoi[ec] ~= nil do
- ec = ec + 1
- envoi[ec] = h.readLine()
- end
- send = textutils.serialize(envoi)
- term.clear()
- term.setCursorPos(1, 1)
- print("pret a envoyer")
- os.pullEvent("key")
- rednet.broadcast(send)
- term.clear()
- term.setCursorPos(1, 1)
- print("termine")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement