title: Java program gives me FileNotFoundException when the file I am reading from exists but then works perfectly fine if I handle the exception
body: <pre><code>import java.io.File;
  import java.io.FileNotFoundException;
  import java.util.Scanner;
  
  public class WordJumble {
  
      public static void main(String[] args) throws FileNotFoundException {
          // TODO Auto-generated method stub
          File file = new File("F:/Files/Topic.txt");
          Scanner sc = new Scanner(file); 
  
          String title = sc.nextLine();
          System.out.println(title);
          for(int i=0;i&lt;10;i++){
              System.out.println(sc.nextLine());
          }
      }
  }
  </code></pre>
  
  <p>Currently the program does what I want it to, but why is it giving me an error about the file not existing? When I add the <code>throws</code> clause to ignore the error it is able to find the file without issue.</p>