Z Zizile New Member Nov 16, 2022 #1 Hi there A new bee in B4A, I have a text file that I created and saved under the file manager files. It has 3 lines. I can not seem to find a way to access that txt file. Kindly assist
Hi there A new bee in B4A, I have a text file that I created and saved under the file manager files. It has 3 lines. I can not seem to find a way to access that txt file. Kindly assist
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2022 #2 Please post code and logs as text. Right click to copy logs. Upvote 0
W walt61 Active Member Licensed User Longtime User Nov 17, 2022 #3 File.DirInternal -> File.DirAssets (the Files folder is the assets directory; note that it is read-only) Upvote 0
File.DirInternal -> File.DirAssets (the Files folder is the assets directory; note that it is read-only)
aeric Expert Licensed User Longtime User Nov 17, 2022 #4 Try: B4X: Dim List1 As List = File.ReadList(File.DirAssets, "Scans.txt") For i = 0 To List1.Size - 1 Log(List1.Get(i)) Next Upvote 0
Try: B4X: Dim List1 As List = File.ReadList(File.DirAssets, "Scans.txt") For i = 0 To List1.Size - 1 Log(List1.Get(i)) Next
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2022 #5 Or: B4X: For Each line As String In File.ReadList(File.DirAssets, "Scans.txt") Log(line) Next Upvote 0