Problem with listings of lots .txt files

Hi all!
I'm a new user of C++ and i have a problem that i want to ask for a solution!
I have a folder that contains for example 10 text files which keep information about a program that i'm working on.
Each file contains the state that has been modified for last time use before closing the program!
When the program starts the last created text file needs to be open and read.
But however it needs to give the user ability to list all recent states of the executing on the program so if all 10 files for example are changes in the program for the past 10 days all the files will have 10 different times on creation and if the user wants to see how it all started 10 days ago to have an option to list that file too like all other text files in the folder!
Please help me with a solution on my e-mail!
zbesnatpp@gmail.com
WinApi, I don't think there's a way to get metadata of files with standard C++. Other than that, you could just manage that metadata yourself.
So you are saying that i should manipulate with the names of the text files?
For example use "name[number].txt".
You could just put the date the text file was last edited in the first line of the text file. And you need to put numbers or something the like after the names anyways cause you can't have 10 files with the same name in the same directory.
I'm gonna try another solution to make another text doc that is going to keep all the names of the text files and put em in vector and use the last member from the vector as a start file and try to make better approach to all the other files cos i will have their names too !
Thanks for the help anyways if this doesn't works i'm gonna look for another solution :D
Topic archived. No new replies allowed.