, :
, , , .
while(inFile >> rows >> columns)
{
inFile.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );
}
, , , - " ", ignore().
while() , : → (). , bool, stream , ( good() ).
, NOT
while(inFile.eof())
, . eof(), false ( , EOF). , , . getline() ( ), EOF. , inLine.
, . , .
while(inFile.eof())
{
getLine(inFile,inputline);
if(inFile.eof())
{
break;
}
}