0

About files and folders -Python

I have 3 questions about files and folders: 1. How can I connect Python files together? May I need another programming language to do it? 2. When I try to open a .py file, it only gives text. Should one Python program be used to take text from .txt files rather? 3. Can I create a folder using Python? How?

7th Jun 2018, 3:17 PM
Seb TheS
Seb TheS - avatar
2 Réponses
+ 1
f = open("myfile.text" , "w") use the open() method to create a new file in pyhton
7th Jun 2018, 3:22 PM
youssef mamdouh
youssef mamdouh - avatar
0
youssef mamdouh I didn't ask for writing files, I asked about creating folders rather than files. Files are already pretty clear thing for me. Please read the guestions carefully before answering.
7th Jun 2018, 4:27 PM
Seb TheS
Seb TheS - avatar