I am making a file reader class to read files. It must be able to ,given a string skip ahead to the line after the given string. I am trying to do this in the constructor. Here is the code I have:
The first constructor works fine. However the second caused a run time error when it tries to open the file (the same one given to the other constructor). I will put a check to make sure it can load a file but I still need to fix this.