Originally Posted by
Daved
Do you still get the same issue if you remove the throw specifications?
A couple notes on your code. First, you should still change the if (!numberOfRows) part. It will work better now that you have initialized the variable, but it isn't as correct as it could be.
Second, you should probably be using the string class instead of C style strings unless you have a specific reason for limiting lines to 80 characters or less. The string class is generally safer and easier to use than C style strings, and in this case you wouldn't have to limit line length to 80 characters.
Third, you should use the standard vector container rather than a dynamic array of doubles for your vec array, unless your class/instructor requires you not to. The reason is that the vector container is safer and easier to use than a plain dynamic array. For example, your code will crash if you create a FileHandling object but don't call ReadFile, or if you try to copy a FileHandling object. If you used a vector, then you probably wouldn't have either of those bugs.