ARA (May 2 2009) OK I have a good one. I am working on the Undo function for a program that saves automatically and I am going from a disaster to another. Here is why. Undo does the reverse of the last function which is what it is supposed to do. So far so good. But what happens when the last function is the automatic save? Then it unsaves and it screws up the page, deleting all the contents. What do I do to avoid this situation?

I might decide to take out the Undo button altogether since it is a constant source of headaches. Perhaps the best would be to create a file that would hold all the deleted text and would disappear when I exit. Any suggestions on how to do this?

Finally I'd like to do a back-up of the current page in a directory called back-up that would be attached to the current directory and would make back-ups every 6 minutes on top of the regular automatic saving. I don't want to keep all back-ups simply the latest one. Any suggestions?

I am learning little by little so please consider that I am not an all-around expert on programming. Thanks a great deal for your help.

Also please note that I'll move all the contents for this This is an empty page.

Enter page contents here or click cancel to leave it empty.