Advertisement
KidBrine

RaidSend

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