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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to delete the file in the c code

Status
Not open for further replies.

Vallurupa

Programmer
Oct 17, 2001
38
US
I have to delete the file in c code.

Please help me

thanks

Prasad
 
if ( _unlink ( "C:\\Example\\File_To_Be_Deleted" ) == -1 )
{ // delete failed, cause is in errno
printf ( "Delete failed, status = %d\n", errno ) }
else
{ printf ( "Delete succeeded\n"); }

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top