The code works fine until I try to make the code into a constructable class. When I attempt to construct an object from it I get the error
"Default constructor cannot handle exception type IOException thrown by implicit super constructor. Must define an explicit constructor"
This is when having to throw exceptions to FileReader and BufferedReader.
Thanks
EDIT:
FileReader textFilethree = new FileReader (xFile);
BufferedReader bufferedTextthree = new BufferedReader (textFilethree) ;
String lineThree = bufferedTextthree.readLine();
The xFile is gotten from the construction. Note that within this construction exceptions are thrown.