Answers for "fw = open("data.txt", "a") sentence = str(input("enter a sentence: ")) fw.write(sentence+"\n") fw.close() fr = open("data.txt", "r") print("---file content---")"

0

file.open("file.txt);

myfile = open("example.txt")
txt = myfile.read()
print(txt)
myfile.close()
Posted by: Guest on August-30-2020

Code answers related to "fw = open("data.txt", "a") sentence = str(input("enter a sentence: ")) fw.write(sentence+"\n") fw.close() fr = open("data.txt", "r") print("---file content---")"

Python Answers by Framework

Browse Popular Code Answers by Language