Advertisement
KidBrine

RaidPull

Apr 15th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local file = ...
  2. shell.run("/RaidPro/Dirs")
  3. local DD = {}
  4. for i = 1,#Dirs do
  5.   table.insert(DD,fs.open(Dirs[i].."/"..file,"rb"))
  6. end
  7. local F = fs.open(file,"wb")
  8. local function B(x) Q = DD[x].read() return Q end
  9. repeat
  10.   for i = 1,#DD do
  11.     w = DD[i].read()
  12.     if w ~= nil then
  13.       F.write(w)
  14.     end
  15.   end
  16. until w == nil
  17. for i = 1,#DD do
  18.   DD[i].close()
  19. end
  20. F.close()
  21. Dirs = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement