I am using the following code for reading lines from a text-file. What is the best method for handling the case where the line is greater than the limit SIZE_MAX_LINE?
Since you're using C++ and iostream already, why not use std::string's getline function?
std::string
std::string acLine; while(xInFile){ std::getline(xInFile, acLine); // etc. }
And, use xInFile.good() to ensure eofbit and badbit and failbit are not set.
xInFile.good()
eofbit
badbit
failbit