print("Writing into file.....")
f1=open("File.txt","w") //Opening and creating file into write mode
f1.write(input()) //Writing into file
f1.close()
print("Reading from file.....")
f1=open("File.txt","r") //Opening file in read mode
a=f1.read() //Reading from file
print(a)
f1.close()
No comments:
Post a Comment