title: java.io.FileInputStream.<init>(Unknown Source)
body: <p>Hi Deployed the following code in eclipse</p>
  
  <pre><code>//import cs1.Keyboard;
  import java.util.*;
  import java.io.*;
  public class Parser
  {
      public static void main (String[] args) throws IOException
      {
          String [][] addyArray = new String[50][4];
          for (int j=0; j&lt;50; j++)
          {
              for (int k=0; k&lt;4; k++)
              {
                  addyArray[j][k] = "\n";
              }
          }
          FileReader inFile = new FileReader ("sample.txt");
          BufferedReader in = new BufferedReader (inFile);
          String line = "";
          int i = 0, a = 0;
          while(in.ready())
          {
              line = in.readLine();
              while (line != null &amp;&amp; line != "\n")
              {
                  addyArray[i][a] = line;
                  line = in.readLine();
                  a++;
                  if (line == null) line = "\n";
              }
              i++;
              a = 0;
          }
          for(int j=0; j&lt;3; j++)
          {
              for(int k=0;k&lt;4;k++)
              {
                  System.out.println((j+1) + "-" + (k+1) + " " + addyArray[j] [k]);
              }
          }
      }
  }
  </code></pre>
  
  <p>I am getting the following error at this line <code>FileReader inFile = new FileReader ("sample.txt");</code></p>
  
  <pre><code>at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at java.io.FileReader.&lt;init&gt;(Unknown Source)
  at Parser.main(Parser.java:19)
  </code></pre>
  
  <p>I placed sample.txt file in the same package folder where the above source code file was placed. I am not sure why I am getting this error. Can you please help me out. Thank you</p>