![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
need help????
So I have made a little program in C++, that modify a file and I want after 10 days to be able to restore the file from his original format, how can I do that?
![]() |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4
![]() |
you have a file... lets see with a configuration? you made changes... and after 10 days you want to be able to restore the file to its original configuration? (this is an example, i dunno the info in your file)
If this is the case.. why dont you just maintain a copy of the original file.. and in ten days... just do whatever you like with the edited one... delete it.. rename it. move it... and copy the backup of the original as the name of the one you can edit -codetaino
__________________
"God bless u all" :) |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
Yes but how to do that, I have thinck about rename it .bak but how to make the program rename it?
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
use a scheduled task (windows) or a cronjob (unix) to copy in the original file (saved in another location) to the production location.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|