@ TheIdeasMan: I read the date value from the file and stored in the vector. Now I want to pull the date (integer ) from the vector and write on the another file. But my criteria is if the value of day and month is < 10, the 0 Should be added before the integer value. I can write the function to do that, but I am looking for some simpler way whether any method exists already.. Thanks
@LimeOats: THanks for your comments but do that works while I must need to include before the month and day value less than 10.
EG. if the month is 1 , then the value written on the file should be 01 and so on.