Machine Droid x2
I have a data directory on my ext SD card and in the data is a file settings.txt
settings.txt = "1000|E"
SDcard data/settings.txt
sdf is defined as "root/sdcard-ext/data"
Msgbox(File.ReadString(sdf, "settings.txt"), "msgbox 1read")
this displays the file contents correctly.
Msgbox(File.ReadString(File.DirRootExternal, "/data/settings.txt"), "msgbox 2read")
cannot find the file and returns a java.1o.FileNotFoundException
The path generated is
/mnt/sdcard/data/settings.txt is clearly wrong. The question is just what should I use instead of File.DirRootExternal to get the right path?
Best Tom B
I have a data directory on my ext SD card and in the data is a file settings.txt
settings.txt = "1000|E"
SDcard data/settings.txt
sdf is defined as "root/sdcard-ext/data"
Msgbox(File.ReadString(sdf, "settings.txt"), "msgbox 1read")
this displays the file contents correctly.
Msgbox(File.ReadString(File.DirRootExternal, "/data/settings.txt"), "msgbox 2read")
cannot find the file and returns a java.1o.FileNotFoundException
The path generated is
/mnt/sdcard/data/settings.txt is clearly wrong. The question is just what should I use instead of File.DirRootExternal to get the right path?
Best Tom B