How to read Text file from Storage

Hello Dear Devloper i Am tring to read file from storage and I am unable Do that i am tring to do that from one month please help in that

Block Images(if Any)
blocks - 2022-08-03T192412.892


AIA OR APK(if Any)
Text_reader.aia (124.3 KB)

Add file:// before the path of selected file.

For example

file://storage/emulated/0/DCIM/

  1. The File component uses / needs a relative path.
  2. You cannot read a text file (non-media file) on Android 11+ that is not created by the app itself without using SAF.

For more details see here:

1 Like

These blocks should work on Android < 11:

1 Like

Its workinng on my android 10 device but i can only read phone storage text file

:question:

The block is provided by you is only read phones internal storage text file and not able to read external storage text file…

Read this first:

and then come back and specify your question.

1 Like

except for being rude… cant you reply politely… if you cant, better don’t reply…

:smirk: :smirk: :smirk: :smirk:

sometimes people didn’t understand the code or blocks…

Yes, and that’s why you should read first, learn the basics and then specify the question.

Yes, if you can’t tell, then don’t even reply.

It looks like you have your own definition of internal and external… read the Some basics on Android Storage System and in case there are still doubts please elaborate…

Taifun

If you can’t (or don’t want to) read, then don’t ask questions.

better you dont reply