title: Write a file in internal storage specific folder in Android
body: <p>I want to write a file in internal storage in  a specific folder, I get error when creating fileoutputStream.
  Below is my code:</p>
  
  <pre><code>String filePath = ctx.getFilesDir().getPath().toString() +"/"+folderName;
  Log.d("filePath",filePath);
  file= new File(filePath, filename);
  final FileOutputStream fileOutput = new FileOutputStream(file);
  </code></pre>