I have a simple question.
I want to compare the end of file "*.txt" or "*.cxx" ?
I need to use function to compare a few characters in string.
const char* filename = "file.txt";
if(strstr(filename, ".txt") != 0)
std::cout<<"It is cxx file"<<std::endl;
std::cout<<" it is txt file"<<std::endl;
I would appreciate for any help please ;)