how to make a new file in a certain folder using python code example Example: create file in a specific directory python f = open(r"C:\Test.py", "a")