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?
If you use the free function in string, you don't have to pass a max length. It also the uses C++ string type.