import java.io.Reader;
import java.io.FileReader;
import java.io.IOException;

public class example1 {
  public static void doit(String fname) throws IOException {
    Reader r=new FileReader(fname);
    r.close();
  }

  public static void main(String[] args) throws IOException {
    try {
      doit("splat");
      }
      catch (IOException e) {
      System.err.println("Got an exception while trying to doit(\"Splat\")" +
      			 ": " + e);
      }
  }
}
