Creating a folder and file with python in android| @binarycup| @shivamstudio6662

Опубликовано: 13 Февраль 2026
на канале: BINARY CUP
1,765
17

We are using os module to create folder and file handle as f to create a file in write mode

code:
import os

os.mkdir("/storage/emulated/0/Test_Folder")
os.chdir("/storage/emulated/0/Test_Folder")


f=open("Test File.txt","w")
f.close()


Pydroid3 app link : https://play.google.com/store/apps/de...
-----------------------------------------------------
Coder : Mohit Khatak
Stay connected with us
Contact : +918950097115
Whatsapp: +918950097115
Mail : [email protected]
Website : https://shivam6662.w3spaces.com
Another website : http://shivam6662.epizy.com
© SHIVA+M STUDIO