title: IOException: No Such File or Directory (Android)
body: <p>This is my first Android app and my first attempt at writing something to file. I'm trying to capture a log <a href="https://stackoverflow.com/a/19968400/3165621">according to these instructions</a> and I'm getting the <code>FileNotFoundExeption ENOENT (No such file or directory)</code>. That's fair enough because the directory does not exist. But then how do I create the directory? Or use another one? I don't know best practices for where to write logs to email them, nor do I know how to make a new directory for them.</p>
  <p>This is the path I'm trying to use.</p>
  <pre><code>String path = Environment.getExternalStorageDirectory() + &quot;/&quot; + &quot;MyFirstApp/&quot;;
        String fullName = path + &quot;mylog&quot;;
  File file = new File (fullName);
  </code></pre>