title: Reading in Data (Java)
body: <p>I am having trouble loading data into my Java program. The program says the file exists, but FileReader is giving a FileNotFoundException. I have tried the full path and made sure all files are closed. I am using the Eclipse IDE. Any suggestions?</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.FileReader;
  import java.io.File;
  
  public class ReadCSV {
      public static void main(String[] args) {
          String filepath = "/Users/mrodgers/Documents/other/languages/java/eclipse/ReadCSV/src/data.csv";
          //String filepath = "~/Desktop/data.csv";
          //String filepath = "data.csv";
  
          File mjr = new File(filepath);
          System.out.println(mjr.exists());
  
          FileReader fr = new FileReader(mjr);
  //      BufferedReader br = new BufferedReader(fr);
  
      }
  }
  
  </code></pre>