title: Why I can't create a file in the internal directory?
body: <p>I'm trying to create a new file by:</p>
  
  <p><code>File file = new File(this.getFilesDir(), "test.tmp");</code></p>
  
  <p>After that I have the follwing code:</p>
  
  <pre><code>try {
        fis = new BufferedInputStream(new FileInputStream(file));
        ObjectInputStream ois = new ObjectInputStream(fis);
  
        ..... other not important code
  </code></pre>
  
  <p>And it throws the following error:</p>
  
  <p><code>android.system.ErrnoException: open failed: ENOENT (No such file or directory)</code></p>
  
  <p>regarding this line:</p>
  
  <p><code>fis = new BufferedInputStream(new FileInputStream(file));</code></p>
  
  <p>Isn't <code>File file = new File(this.getFilesDir(), "test.tmp");</code> supposed to create the file?</p>
  
  <p>Can you give me a clue? I know that I'm missing a small but important part here, but I'm unable to spot it.</p>