File in internal storage (python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

File in internal storage (python)

Hi, I want to access a file in the internal memory of the mobile phone (android), but when I want to access it in w mode, it says there is no file, while w mode creates a file if it does not exist. Example: file = open ("/storage/emulated/0/test.txt" , "w") file.close() Erorr information: Traceback ( most recent call last ) : File " file.py " , line 1 , in < module > file = open ( " ../ Playground / " , " w " ) FileNotFoundError : [ Errno 2 ] No such file or directory : ' ../Playground/ '

31st Mar 2021, 6:28 PM
MohammadMahdi
MohammadMahdi - avatar
1 Answer
+ 1
Jan Markus thank u man
31st Mar 2021, 6:35 PM
MohammadMahdi
MohammadMahdi - avatar