Hello
If I put a text file in the assets folder (e.g. test.txt) then I can get it like this:
s := jFileProvider.GetTextContent('test.txt');
And this works fine.
However, if I put the same file in a subfolder of the assets folder, e.g. sub/test.txt, and I try to read it like this:
s := jFileProvider.GetTextContent('sub/test.txt');
Then it doesn't work. s comes back empty.
BTW I looked inside the compiled APK, and I can see the file there, e.g. assets/sub/test.txt so the file is for sure in the APK, but I cannot get it using jFileProvider.GetTextContent
Am I doing something wrong? Should I write the path differently? (I tried a lot of variations of the path, with and without / but I could not get it to find that file...)
Any help will be very appreciated!
All the best,