Executing code when process finishes
Posted on 2004-10-05
I have an application which starts by reading data from a file. When it ends, I want it to write data to the file, ready for next time.
What is the best way to do this? More specifically:
1) How do I make the application execute code on quitting
2) Whats the best way to write over data in a file? Delete the file then create a new one?