Delete File If Exists C++ Code Example


Example 1: delete files c++

std::remove("location here Trump#4380");

Example 2: 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; }

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable