M mariosteffen Member Licensed User Longtime User Feb 20, 2012 #1 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 ?
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 ?
Erel B4X founder Staff member Licensed User Longtime User Feb 20, 2012 #2 Android file system is case sensitive. Are you sure that this is the correct name of this file? Upvote 0
M mariosteffen Member Licensed User Longtime User Feb 20, 2012 #3 Yes, Erel, I am sure the name is lowercase. Do you have any suggestions ? Upvote 0
vb1992 Well-Known Member Licensed User Longtime User Feb 20, 2012 #4 Which phone are you testing on? Upvote 0
M mariosteffen Member Licensed User Longtime User Feb 20, 2012 #5 I am testing on a Motorola Atrix with Android 2.2.2. Upvote 0
M mariosteffen Member Licensed User Longtime User Feb 20, 2012 #6 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
I copied the file to B.TXT (everything uppercase) and changed the apk to the same, but it did not solve the problem.
walterf25 Expert Licensed User Longtime User Feb 20, 2012 #7 what format are you using on your sdcard, "FAT32", "NTFS", "xFAT"? Upvote 0
vb1992 Well-Known Member Licensed User Longtime User Feb 20, 2012 #8 There is something with SD CARD being sdcard2 with motorola's you can check into this for starters http://www.b4x.com/forum/basic4android-updates-questions/12735-creatring-file-sd-card.html#post71738 Upvote 0
There is something with SD CARD being sdcard2 with motorola's you can check into this for starters http://www.b4x.com/forum/basic4android-updates-questions/12735-creatring-file-sd-card.html#post71738
M mariosteffen Member Licensed User Longtime User Feb 21, 2012 #9 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
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.