+ 2
HELP how can i open and read from files on android
12 Answers
+ 3
Thanks Lothar and prince kumar
+ 2
Do you mean using sololearn playground? Sololearn playground has no access to your local storage.
+ 2
with open("/usr/local/lib/python3.8/importlib/_bootstrap_external.py") as file:
print(file.read())
+ 2
Muluken Addis Tamene ,
2 things to consider:
- the file with the python code has to be stored physically on the system
- file path in android has to start with slash "/storage/emulated/....."
+ 1
I know, i use pydroid 3 but i get bug , file not found error
+ 1
Check the path again?
+ 1
("storage/emulated/0/Boom Player/cache /discover.txt", "w+") i try this is there a syntax error?
+ 1
w means write, not read
+ 1
That is w+ not w