Answers for "python save location"

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
2

open file in python directory

path = 'C:\Users\Username\Path\To\File'
file=open(path, "r")
Posted by: Guest on May-13-2020

Code answers related to "python save location"

Python Answers by Framework

Browse Popular Code Answers by Language