A
aki
Hello ,
i want to use system commnad in my code to delete files in specified
manner.
but this way i am not able to delete files.
Can somebody answer .
i tried with this as following , but not working
string omcid;
string netype ;
string nename ;
//some stuff to get values inside these string variables
cout<<"omcid"<<omcid<<endl; // here i printed the value it
iscoming correct
cout<<"netype"<<netype<<endl;// here also
cout<<"nename"<<nename<<endl; // here also
system( ("rm -f /path/" + omcid + '_' + netype + '_' + nename
+"_*_trans.csv").c_str() ) ;
thanks
aki
i want to use system commnad in my code to delete files in specified
manner.
but this way i am not able to delete files.
Can somebody answer .
i tried with this as following , but not working
string omcid;
string netype ;
string nename ;
//some stuff to get values inside these string variables
cout<<"omcid"<<omcid<<endl; // here i printed the value it
iscoming correct
cout<<"netype"<<netype<<endl;// here also
cout<<"nename"<<nename<<endl; // here also
system( ("rm -f /path/" + omcid + '_' + netype + '_' + nename
+"_*_trans.csv").c_str() ) ;
thanks
aki