Hi,
I have main folder, and many sub-folders. Inside each sub-folders, there are many sub-folders(sub-sub-folders). The sub-sub-folders contain many files(mainly text). I want to only read text files. But unfortunately some sub-folders are empty or some sub-sub-folders contain other files (non-text files). So, I wish the following:
1. Skip if the sub-folder is empty2. Skip if the text file is emptyMy meaning: skip means skip the iteration. I am reading the text files as following:by each sub-folder and by each sub-sub-folders (the text files) Please some one help me how to do this.
Many many thanks in advance,
Best Answer