I've got bit of a problem here:
In the above code, when strcmp() returns zero and the inner while loop breaks before the Efs reachs it's eof, all seems to work fine. But when the inner loop iterate until the eof is found, in the next iteration of the outer loop, tellg() returns (-1) and the inner while’s efo check returns non-zero. Could anyone please point out how to fix this?
char* Ewrds = new char;
Efs.getline(Ewrds, 20, '\n');
cout<< "Not Found";