Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Question about deleting files...

Status
Not open for further replies.

JurgenWellinger

Programmer
Aug 30, 2001
8
ZA
How do I delete a file from within Vis C++ that I created using fopen? Just so that I can stop my programs from making a mess on the hard drive!

Thanks
Jürgen.
 
There is an API call "DeleteFile(LPCTSTR filename)"

This will do it for you... it returns 0 if it failed and you will need to call "GetLastError" to find out why

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top