title: Problem with Java FileReader
body: <p>Hello I have this in my code</p>
  
  <pre><code>File file = new File("words.txt");
      Scanner scanFile = new Scanner(new FileReader(file));
      ArrayList&lt;String&gt; words = new ArrayList&lt;String&gt;();
  
      String theWord;    
      while (scanFile.hasNext()){
          theWord = scanFile.next();
          words.add(theWord);
      }
  </code></pre>
  
  <p>But for some reason I am getting a</p>
  
  <blockquote>
    <p>java.io.FileNotFoundException</p>
  </blockquote>
  
  <p>I have the words.txt file in the same folder as all of my .java files</p>
  
  <p>What am I doing wrong? Thanks!</p>