- Home /
Read txt file from Android Downloads file
I have a text file in my android "Download" file and i would like to read from it. I have the script that is able to read .txt files but I do not know how to navigate to the "Download file".
I have tried "/storage/emulated/0/Download/Data.txt" and it doesn't work. I have used: System.IO.File.Exists "/storage/emulated/0/Download/Data.txt"()
to confirm that the file Exists but i cannot read from it sadly. Because of what I am doing I can also not store it in the persistentDataPath.
Any help would be greatly appreciated!
https://stackoverflow.com/questions/12421814/how-can-i-read-a-text-file-in-android Should be helpful to you, in such cases imo its better to look on StackOverflow as it is more Android than Unity related.
Answer by xxmariofer · Jan 18, 2019 at 02:11 PM
download and read using application.persistentDataPath. i can provide some code later if you are having issues.