Error on read txt file

Hi Koders,

Since two days ago, I tried sometimes to find resolve these issue but unfortunately failed.

I have txt file which located in “/storage/emulated/0/” folder, And I want to read text from these file using (File) component.

  • I tried with (Companion), And also after compiled (APK)
  • I used (ReadExternalPermissin) before reading.

I am using (LDPlayer4) emulator with version 5.0.11

And here is my blocks

But same error message appears:
(Error2101: The file /storage/emulated/0/1098109810categories.txt could not be found)

Anyone can help me?

this is know error with android higher versions. Better you can search in community

the problem is:
The file is already exist in (/storage/emulated/0/) folder.

But the error message appears even if file already exist.

move the file to the Downlaod or Documents folder and use SAF to access it
see also Some basics on Android storage system

Taifun