I'm trying to create a temporary text file in C++ and then delete it at the end of the program. I haven't had much luck with Google.
Could you tell me which functions to use?
The answers below tell me how to create a temp file. What if I just want to create a file (tmp.txt) and then delete it? How would I do that?