Answers for "where does python store created files"

2

python file from path

import os 
dir_path = os.path.dirname(os.path.realpath(__file__))
Posted by: Guest on November-04-2020
2

path to create a text file in python

outFileName="F:\folder\folder\filename.txt"
outFile=open(outFileName, "w")
outFile.write("""Hello my name is ABCD""")
outFile.close()
Posted by: Guest on May-11-2020

Code answers related to "where does python store created files"

Python Answers by Framework

Browse Popular Code Answers by Language