Answers for "how to make python create a txt file and directories"

1

create text file in directory python linux

import os.path
f = open(os.path.expanduser(os.path.join("~/Desktop",boyka + ".txt")), "a")
Posted by: Guest on May-24-2020
-1

create file in a specific directory python

f = open(r"C:Test.py", "a")
Posted by: Guest on January-20-2021

Code answers related to "how to make python create a txt file and directories"

Python Answers by Framework

Browse Popular Code Answers by Language