problems reading SD Card

mariosteffen

Member
Licensed User
Longtime User
I am having problems trying to read a file from the sdcard.

The file is on the root of the card and the command is below.

MsgBox(File.ReadString(File.DirRootExternal, "a.txt"), "")

The error message is java.io.FileNotFoundException:/mnt/sdcard/a.txt (No such file or directory).

Can you help me, please ?
 

mariosteffen

Member
Licensed User
Longtime User
I copied the file to B.TXT (everything uppercase) and changed the apk to the same, but it did not solve the problem.
 
Upvote 0

mariosteffen

Member
Licensed User
Longtime User
Thanks vb1992,
you put me on the way to solve the problem.
This phone has 2 sd cards. One with 16gb as the "main memory" and the other, with 2gb. The file was on the second. Everything worked when I copied to the biggest.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…