Re: C++, storing temporary files.
Applications often create a directory called .bla where bla is the application name. These directories are used to store application configuration files, user preferences and other data. You could store your image files in there as well and delete them when the program finishes.
Originally Posted by
cgroza
Another one is to manage the file deletion myself, but I feel this is a too big burden on me and in the case of a crash, would leave garbage on the system.
Not necessarily, you could delete them the next time the application launches (i.e., check for image files, delete them if needed).
"The eagle never lost so much time as when he submitted to learn from the crow."
Bookmarks