A
Abhijit Bhadra
Hi ,
In C++ , I have some files as per their date of creation .
The files are in the form of
maple01012005.log
maple01142005.log
maple01202005.log
sample01182005.log
sample01192005.log
sample01202004.log
sample01202005.log
ample012020051517.log
sample012020051522.log
So the general format of files are <file_name>ddmmyyyyhhmm .
Where hhmm are optional .
Now those file names I put into a list and calling sort() command .
sort obviously will not sort in the form of date .
Can anyone help me to implement sort function .
Thanks,
AB
In C++ , I have some files as per their date of creation .
The files are in the form of
maple01012005.log
maple01142005.log
maple01202005.log
sample01182005.log
sample01192005.log
sample01202004.log
sample01202005.log
ample012020051517.log
sample012020051522.log
So the general format of files are <file_name>ddmmyyyyhhmm .
Where hhmm are optional .
Now those file names I put into a list and calling sort() command .
sort obviously will not sort in the form of date .
Can anyone help me to implement sort function .
Thanks,
AB