Backing up data and Retrieving Backups

What i'm trying to accomplish here is create a program that stores data in .txt files with the functionality of backing up that data (which basically just creates an identical .txt file in another location) and the ability to restore the data using those backup files.
The program that i've created already has the capability of backing up the data. It names the file "Backup" and then concatenates the date it was backed up to the filename (i.e. Backup011709). The problem i'm having is in deciding which backup file to retrieve. I somehow need to tell the program to open the most recent backup file and i'm not sure how to do that. Is there a way to maybe access the 'Date Modified' attribute of the file? Or is there someway to use the date in the file name as an indicator?

I'm using Dev C++ on Windows XP.

Thanks!
Why don't you just record the name of the most recently modified file and keep that in a file, too... just call it config or something like that...
wow...i can't believe i didn't think of that haha. Thanks
Topic archived. No new replies allowed.