Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ remove text file

#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: #remove #text #file
ADD COMMENT
Topic
Name
3+7 =