Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local file = ...
- if fs.exists(file) then
- shell.run("/RaidPro/Dirs")
- local DD = {}
- for i = 1,#Dirs do
- table.insert(DD,fs.open(Dirs[i].."/"..file,"wb"))
- end
- F = fs.open(file,"rb")
- local function B() Q = F.read() return Q end
- repeat
- for i = 1,#DD do
- w = B()
- if w ~= nil then
- DD[i].write(w)
- end
- end
- until w == nil
- for i = 1,#DD do
- DD[i].close()
- end
- F.close()
- else
- error("File "..file.." Does not exist")
- end
- Dirs = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement