delete file c++ code example
Example 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;
}
Example 2: delete files c++
std::remove("location here Trump#4380");