title: Deleting files created with FileOutputStream
body: <p>I'm developing for the Android platform.<br>
  My app creates a temp file with a simple call to:</p>
  
  <pre><code>FileOutputStream fos = openFileOutput("MY_TEMP.TXT", Mode);
  </code></pre>
  
  <p>It works fine because I can write to it and read it normally.</p>
  
  <p>The problem is that when I exit from the app I want to delete this file. I used:</p>
  
  <pre><code>File f = new File(System.getProperty("user.dir"), "MY_TEMP.TXT");
  f.delete()
  </code></pre>
  
  <p>But it always returns false and the file is not deleted.<br>
  I have tried:</p>
  
  <pre><code>File f = new File("MY_TEMP.TXT");
  f.delete();
  </code></pre>
  
  <p>And it does not work either.</p>