S smartbms_jaga Member Sep 25, 2023 #1 If File.Exists(FilePath, "") Then ' Read the content of the text file TextContent = File.ReadString(FilePath,"") upto android 10 its working android 11,12 it gives error java.io.FileNotFoundException: /storage/emulated/0/bmsimport/balance.csv: open failed: EACCES (Permission denied)
If File.Exists(FilePath, "") Then ' Read the content of the text file TextContent = File.ReadString(FilePath,"") upto android 10 its working android 11,12 it gives error java.io.FileNotFoundException: /storage/emulated/0/bmsimport/balance.csv: open failed: EACCES (Permission denied)
zed Well-Known Member Licensed User Sep 26, 2023 #2 smartbms_jaga said: TextContent = File.ReadString(FilePath,"") Click to expand... ReadString has no file to read. Where is the file located? With a small example, we could probably correct this error. Upvote 0
smartbms_jaga said: TextContent = File.ReadString(FilePath,"") Click to expand... ReadString has no file to read. Where is the file located? With a small example, we could probably correct this error.
S smartbms_jaga Member Oct 1, 2023 #3 zed said: ReadString has no file to read. Where is the file located? With a small example, we could probably correct this error. Click to expand... FilePath = File.DirRootExternal & "/Download/" & FileName Upvote 0
zed said: ReadString has no file to read. Where is the file located? With a small example, we could probably correct this error. Click to expand... FilePath = File.DirRootExternal & "/Download/" & FileName
Erel B4X founder Staff member Licensed User Longtime User Oct 1, 2023 #4 Whenever you see code with File.DirRootExternal or File.DirDefaultExternal you immediately know that it is broken. There are million threads about it. Switch to XUI.DefaultFolder. Upvote 0
Whenever you see code with File.DirRootExternal or File.DirDefaultExternal you immediately know that it is broken. There are million threads about it. Switch to XUI.DefaultFolder.