title: Can not get file class find a file that already exists
body: <p>I'm trying to make a program that prompts the user for input and then creates a file object from the input and handles if the file doesn't exist by re prompting the user. Ive tried the absolute path and the relative path but it always evalutes to false. any help appreciated</p>
  
  <pre><code>package Module6B;
  import java.io.File;
  import java.io.FileNotFoundException;
  import java.io.PrintWriter;
  import java.util.Scanner;
  
  
  public class Module6 {
      public static void main(String[] args) throws FileNotFoundException {
  
  
          Scanner scan = new Scanner(System.in);
          Boolean exceptionThrown = false;
          String origin = "default";
          String destination = "destination";
          String contents = "";
  
          do {
                  exceptionThrown = false;
              try{
  
                      System.out.println("enter the name of the existing file you want to copy");
                      origin = scan.next();
                  java.io.File original = new java.io.File("C:\\Users\\Samme\\git\\1322-LAB\\src\\Module6B\\"+origin + ".txt");
  
                      if(original.exists()) {
                          contents = readFile(origin);
                      }else {
                      throw new FileNotFoundException();
                      }
  
  
              }catch(FileNotFoundException e) {
                      System.out.println("the file with the name you entered was not found enter a "
                              + "1 if you would like to try again and enter a valid file name or a 0 if you "
                              + "would like to exit the program");
                      int response = scan.nextInt();
                      if(response == 1) {
                      exceptionThrown = true;
                      }else {
                          System.out.println("Thank you for your time");
                          System.exit(1);
                      }
              }
  </code></pre>