# Permission issue in reading file from external storage

**URL:** <https://discourse.processing.org/t/permission-issue-in-reading-file-from-external-storage/34184>\
**Category:** Processing for Android\
**Created:** [December 18, 2021, 1:13pm UTC](https://discourse.processing.org/t/permission-issue-in-reading-file-from-external-storage/34184 "2021-12-18T13:13:46Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![bigboss97](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Post date:** [December 31, 2021, 11:03am UTC](https://discourse.processing.org/t/permission-issue-in-reading-file-from-external-storage/34184/11 "2021-12-31T11:03:27Z")

</div>

I let the Exception printed out:  
java.lang.IllegalArgumentException: File /storage/emulated/0/twinkBOSS/env.txt contains a path separator

Looks like I’m back to following situation which I wasn’t able to resolve:

> [@File contains a path separator](https://discourse.processing.org/t/file-contains-a-path-separator/6865/11):
>
> @FurryNightShade=== yes, but this code does not answer to your question because you KNOW a) you hardcode the path b) the user cannot choose nothing; if you want to see all songs on your phone, try someting like that:: import android.os.Environment; void setup(){ size(800,1000); orientation(PORTRAIT); File f= Environment.getExternalStorageDirectory();//dossier de base parcoursDossier(f); } void draw(){ } public void parcoursDossier(File dossier) { File[] listFile;///Ar…

---

_[View the full topic](https://discourse.processing.org/t/permission-issue-in-reading-file-from-external-storage/34184)._
