title: android studio java.io.filenotfoundexception Save text file
body: <p>I have copy an example from developer page:</p>
  
  <pre><code>String FILENAME = "hello_file";
  String string = "hello world!";
  FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
  fos.write(string.getBytes());
  fos.close();
  </code></pre>
  
  <p>but it says that that:</p>
  
  <blockquote>
    <p>exception java.io.filenotfoundexception  on : 
    openFileOutput(FILENAME, Context.MODE_PRIVATE)</p>
  </blockquote>