UNB/ CS/ David Bremner/ teaching/ java/ CheckedException3.java
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class CheckedException3{
  public static void open(String filename){
      try {
        BufferedReader infile=  new BufferedReader(new FileReader(filename)); 
      } 
      catch (IOException e){
          System.out.println("Aieeeeee!");
          e.printStackTrace();
          System.exit(1);
      }
  }
    public static void main(String[] args){
        open("foo");
    }
}

//