title: java.io.FileNotFoundException in eclipse
body: <h2>Code:</h2>
  
  <pre><code>import java.io.*;
  import java.util.Scanner;
  
  public class Driver {
  
      private int colorStrength;
      private String color;
  
      public static void main(String[] args) throws IOException {
  
          String line, file = "strength.txt";
  
          File openFile = new File(file);
          Scanner inFile = new Scanner(openFile);
  
          while (inFile.hasNext()) {
              line = inFile.nextLine();
              System.out.println(line);
          }
  
          inFile.close();
      }
  }
  </code></pre>
  
  <p>This is a small part of a program I am writing for a class (the two private attributes have yet to be used I know)  but when I try to run this with the strength.txt file I receive the following errors: </p>
  
  <h2>Exception:</h2>
  
  <pre><code>Exception in thread "main" java.io.FileNotFoundException: strength.txt (The system cannot find the file specified)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at java.util.Scanner.&lt;init&gt;(Unknown Source)
  at Driver.main(Driver.java:14)
  </code></pre>
  
  <p>If anyone with Eclipse could help me figure this out it would be much appreciated! </p>