I want to write a file in internal storage in a specific folder, I get error when creating fileoutputStream.
Below is my code:

```
String filePath = ctx.getFilesDir().getPath().toString() +"/"+folderName;
Log.d("filePath",filePath);
file= new File(filePath, filename);
final FileOutputStream fileOutput = new FileOutputStream(file);

```