I am tring to write a program that keeps track of the date evey time a new object has been created so that if i open the same object from file 2 days later, it will show that 2 days have passed since its creation.

So I need to store the date in a C++ console application. probably in a .dat file or so. can you help me how to do that ?

thanks for your help.

action