title: Android Studio cannot read from file, does not exist
body: <p>I'm trying to read from a file in Android Studio, in a small Java app.  So I'm trying this:</p>
  
  <pre><code>    File test = new File("C:\\testing\\testFile.dat");
      if (test.exists()) {
          System.out.println("test exists");
      }
      else {
          System.out.println("test doesn't exist");
      }
  </code></pre>
  
  <p>The file definitely exists, but it keeps on reporting that the file doesn't exist.  I was able to work around this with another file by using the <code>AssetManager</code> and reading it through a stream, but the method I'm calling now requires a <code>File</code>'s absolute path, but it's point blank refusing to find the file.</p>
  
  <p>Am I doing something dumb, or misunderstanding something?</p>
  
  <p><strong>UPDATE</strong>
  Ok, thanks for the input, I've now solved the problem.  First I had to upload the file I wanted into the virtual device's storage, then I was able to get the path to it.</p>
  
  <pre><code>File test = new File(this.getFilesDir().getAbsolutePath(), "testFile.dat");
  </code></pre>