Reading text files from the Android document folder?

The code I am porting to Android from iPad seems to be successfully writing text files using SpecialFolder.Documents, but I do not know how to verify this. Is there a way to open such a file inside the Android simulator.

This might work. First print the location in Xojo messages panel:
System.debugLog(file.NativePath)

Then in Android Studio there is a feature to navigate in the system files of the simulator.

I’m not in front of my computer right now, I can offer more guidance later if needed.

try files app from google or any file manager.
android have a virtual file system, possible your file is hidden or not listed.
if you can write the file you could open the file from xojo.

Thank you for the suggestions. My obstacle is that the code that creates the file is randomized and creates a different one each time. I thought I could go over to my iPad Mobile version, give it a constant seed, then dive down into the core simulator folder of the Mac where I am running the simulators, get the file it produces, put it into a constant in my Android version, and then run the Android with the same seed and compare. No such luck. Given the same seed, iOS and Android give different results. (Mac Desktop gives a third.) I will keep trying to figure out a way to test.

Since all three platforms give different results, it sounds like your core algorithm has a flaw.

Build that in a separate project so it’s easier to debug and then put it in your main project.

I certainly did find a flaw in my code. “DownTo” was not behaving. Changing a For Next loop to a While Wend solved that. As for the random numbers, I tried the attached little code on Mac and Android and seem to get very different results after a thousand calls to the random generator. I wonder if you see the same.

RandomTest Text.txt.zip (769 Bytes)