print("Writing into file.....")
f1=open("file.txt","w") //Opening a file in write (existing or non-existing)
f1.read(input()) //Taking user input to write into file
f1.close() //Closing file
f1=open("file.txt","r") //Opening file to read data
print(f1.read()) //Reading data from file
f1.close() //Closing file
No comments:
Post a Comment