Android Question read/write a textfile

rogel a. tolentino

Member
Licensed User
when i execute the command below i open the file manager and saw the files at specified drive
adb push reader.txt /sdcard/readi.txt located at the root directory of internal memory
adb push reader.txt /sdcard/data/readi.txt located at folder data of internal memory
adb push reader.txt /storage/sdcard0/readi.txt located at the root directory of external memory
adb push reader.txt /storage/sdcard0/data/readi.txt located at folder data of exinternal memory
I tried the command below just to trace the location of File.DirRootExternal,File.Dirinternal and File.DirDefaultExternal

Msgbox("dirrootexternal",File.DirRootExternal)
Msgbox("dir int",File.Dirinternal)
Msgbox("dir defa external",File.DirDefaultExternal)
the display are as ashown below
dirrootexternal /storage/emulated/0
dirinternal /data/user/0/b4a.mrs/files
dirdefaultexternal /storage/emulated/0/android/data/b4a.mrs/files
I tried viewing at file manager said three location but I can not view
My goal is to read the file readi.txt located at diffrent location such as /sdcard , /sdcard/data ,/storage/sdcard0 and /storage/sdcard0/data
Can you help me?
Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Please use [CODE]code here...[/CODE] tags when posting code.

codetag001.png

codetag002.png

codetag003.png
 
Upvote 0
Top