Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

delete file cpp

/* remove example: remove myfile.txt */
#include <stdio.h>

int main ()
{
  if( remove( "myfile.txt" ) != 0 )
    perror( "Error deleting file" );
  else
    puts( "File successfully deleted" );
  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #delete #file #cpp
ADD COMMENT
Topic
Name
9+8 =