title: Android open file
body: <p>I was trying to open a file for reading.</p>
  
  <p>When using: <code>Scanner input = new Scanner(filename);</code> the file could not be found</p>
  
  <p>but when I used:</p>
  
  <pre><code>InputStream in = openFileInput(filename);
  Scanner input = new Scanner(in);
  </code></pre>
  
  <p>It worked. Why was the first line of code wrong?</p>