import os
#getcwd means get current working directory
#print(os.getcwd())
os.getcwd()
f = open("output.txt", "w")
f.write("Hi.....")
f.close()
# rename("", "") --> ("Old Name", "New Name")
os.rename("output.txt", "check.txt")
#remove("") --> ("File Name")
os.remove("check.txt")
Comments
Post a Comment