Unable to read a text file from external storage (Android studio)

248 views Asked by At

I wrote a small script to check whether a text file exists in a folder. I have created a folder named depth_estimation and it contains a file named K.txt (Attaching screenshot for reference). While I try to read the text file it throws an error stating the file is not found but when I checked the folder the file actually exists. I am just a beginner!enter image description here enter image description here

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
0

There are 0 answers