System.out.println("Starting TestBufferedReader...");
TestBufferedReader mainFrame = new TestBufferedReader();
mainFrame.setSize(400, 400);
mainFrame.setTitle("TestBufferedReader");
mainFrame.setVisible(true);
// Lets add error detection
try {
mainFrame.readFile();
}
catch (FileNotFoundException e) {
System.out.println("Warning, FileNotFound exception raised"+e);
}
catch (IOException e) {
System.out.println("Warning, I/O exception "+e);
}