24

Well, I execute ls -l and got this,

-rw-rw--w- app_34   app_34         75 2011-08-30 23:38 dados.txt

Now how do I view the content of the .txt file? Is possible?

3 Answers 3

58

A few different options, but if you just want to dump to the console try:

cat dados.txt
1
  • I find the remark helpful that you have to use the "full" path, i.e. cat sdcard/Documents/<filename>
    – softburger
    Commented Sep 29, 2023 at 7:45
2

The following command will work too:-

adb pull {absolute path to directory/file}

cat filename
2

To show it on the phone screen the command is this:

am start --user 0 -a android.intent.action.VIEW -d file:///data/local/tmp/file.txt -t text/plain
1
  • thanks, i change file:///data/ for file:///sdcard/DCIM/
    – El David
    Commented Sep 14, 2021 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.