Thanks for providing the solution, PHV.
Out of curiosity, I thought of knowing if there's a way of doing this by reading the input no. as a string, read the required part of the string, append appropriate no. of zeroes and create a directory structure using these strings.
I agree that this is a complicated process, just out of curiosity, I wanted to know this.
Thanks again for your time, PHV.
- RV