Hello coders..

As part of my task, I need to get file size of some files, which i can get very easily by using FileInfo class.. As of now, I'm looping through all files in My Directory and then taking their file sized into a notepad.

But the real problem for me is,Like this, I'm having around 100 Root directories, each contains ~ 1000 subdirectories and each sub directory contains ~ 80 files..

Yes, I know, that, I can use a recursive function and loop through all dirs and sub dirs and thus the files.. which was taking huge efforts in terms of time.

I want to know, If there was any other alternative, which will make my task more easier and efficient..

If it is clear, Then i would like to further ask some more questions on this topic.