I wonder something about finding a specific character in a string.
What I am trying is to find "*" and if that character is found in the string, I will
write "Found" to a file.
When running the code below. All this is happening but the same thing is happening
if I change the string1 to "Number1 - Number2".
So I wonder if I could have missed anything here ?
ofstream File1;
File1.open("C:\\File1.txt");
std::string string1 = "Number1 * Number2";
if( string1.find("*") )
{
File1 << "Found";
}