0

How do I read files with QPython 3?

QPython has a few preload files, such as hello_world.py It's location on my android phone is at: /storage/emulated/0/qpython/scripts3/hello_world.py So what would be the code needed to read that file? I was told I should use this code in order to read files in QPython 3 but im not sure how to configure to read that hello_world.py file above: https://code.sololearn.com/c353t4yMF09n/#py

26th Aug 2019, 6:06 AM
steve
steve - avatar
1 ответ
+ 1
That's all that is needed: code: with open('/storage/emulated/0/qpython/scripts3/hello_world.py','rb') as file: print(file.read()) But since it look to be atoo simple answer, I am not sure I understood your question... Can you tell me if I do?
26th Aug 2019, 8:00 AM
Gwlanbzh
Gwlanbzh - avatar