I am creating a folder structure in my program
UserName->UserInfo->DateTime
What I need to do is if the folder structure exists, Then I need to create a new folder structure with an integer (between 01 to 99) appended at the end of date time.
SO if the above exists then new one should look like
UserName->UserInfo->DateTime_01
If above exists then it should be
UserName->UserInfo->DateTime_02
So on and so forth upto 99. (99 being the upper limit)
But if the upper limit is 999 then the folder structure should be
UserName->UserInfo->DateTime_001
If above exists then it should be
UserName->UserInfo->DateTime_002
So on and so forth upto 999.
How should I write such code?
I am thinking specifying the upper limit in a config file but I am not sure how to append correct number of digits in the for loop? ...
Go to the complete details ...