I need to delete a temporary file from my C++ windows application (developed in Borland C++ Builder). Currently I use a simple:
system('del tempfile.tmp');
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?
It sounds like you need the Win32 function DeleteFile(). You will need to
#include <windows.h>to use it.