hoge/honya/henyo/hanya/file1
hoge/honya/henyo/hanya/file2
hoge/honya/henyo/file3
hoge/honya/henyo/hanya/mokyo/file4
hoge/honya/henyo/hehehe/file5
hoge/honya/henyo/hanya/kekeke/file6

という内容のファイルがあるとします。
この内容を上から順番に読み込んでファイルをコピーしていくにはどうすればいいですか?