save and open folder os python code example
Example 1: 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()
Example 2: open file in python directory
path = 'C:\\Users\\Username\\Path\\To\\File'
file=open(path, "r")