title: Java error: Default constructor cannot handle exception type FileNotFound Exception
body: <p>I'm trying to read input from a file to be taken into a Java applet to be displayed as a Pac-man level, but I need to use something similar to getLine()... So I searched for something similar, and this is the code I found: </p>
  
  <pre><code>File inFile = new File("textfile.txt");
  FileInputStream fstream = new FileInputStream(inFile);//ERROR
  // Get the object of DataInputStream
  DataInputStream in = new DataInputStream(fstream);
  BufferedReader br = new BufferedReader(new InputStreamReader(in));
  </code></pre>
  
  <p>The line I marked "ERROR" gives me an error that says "Default constructor cannot handle exception type FileNotFoundException thrown by implicit super constructor. Must define an explicit constructor."</p>
  
  <p>I've searched for this error message, but everything I find seems to be unrelated to my situation.</p>