TEXT FILE INTRO July 13, 2026 fout= open("text.txt","w") # new File opened for writing fout.write("This program is creating a text file\n") str="The name of the text file is text.txt" fout.write(str+"\n") fout.close() Read more