With the following line I get a syntex error relating to the ifstream file
if ifstream file(filename.c_str()).find string1
++counter;
I have already declared the input file and do not understand why there is an error. Sorry for seeming dumb but I am new to this!!