12345
ifstream inputfile; inputfile.open(name.c_str()); if(!inputfile >> string1 >> string2 >> string3) throw 3;
no match for bool >> String& operator
if( !( inputfile >> string1 >> string2 >> string3 ) ) throw 3 ;
12
if( inputfile >> string1 >> string2 >> string3 ) { /* process input */ } else throw 3 ;