+ 3
How to open files in Android?(Python)
I want to open a ".txt" file usin SoloLearn's playground. It keeps giving me a file not found error. My code was, open("/storage/emulated/0/Downloads/mytextfile.txt")
2 Respuestas
+ 1
I don't think you can access your filesystem through sololearn. You can use some other IDE like Pydroid https://play.google.com/store/apps/details?id=ru.iiec.pydroid3
0
You need to put "//" double slash instead of single / slash.
Like
open("storage//emulated//0//Downloads//mytextfile.txt")