Hey guys I am just wondering why the line of code below doesn't work? Is it because i am reading a line of text a word at a time?
Thanks.
Code:char array [200];
ifstream file;
if (file.is_open())
{
while (file >> array)
{
if(strstr(array,"hello james") != 0)
count++;
}