Answers for "c++ remove text file"

C++
1

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;
}
Posted by: Guest on May-13-2020

Browse Popular Code Answers by Language