title: How to delete a file from a C++ app without console window in Windows?
body: <p>I need to delete a temporary file from my C++ windows application (developed in Borland C++ Builder). Currently I use a simple:</p>
  
  <pre><code>system("del tempfile.tmp");
  </code></pre>
  
  <p>This causes a console window to flash in front of my app and it doesn't look very professional. How do I do this without the console window?   </p>