title: How to create a temporary text file in C++?
body: <p>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. </p>
  
  <p>Could you tell me which functions to use?</p>
  
  <hr>
  
  <p>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?</p>