title: Android Internal File
body: <p>I have created a file using FileOutputStream in my app, </p>
  
  <pre><code>fos = this.openFileOutput("foo.txt", Context.MODE_PRIVATE);
  </code></pre>
  
  <p>Now, I want to check if the file exists, using</p>
  
  <pre><code> File file = new File("foo.txt");
       if (file.exists()) {
           file.delete();
           Log.d("tag", "im here");
       }
  </code></pre>
  
  <p>If the file exists I want to delete it. But my code does not seem to reach "im here". Is my approach wrong? How can I correct it? Thanks</p>