Why is they a error.
I am trying to do a Note pad project. But there is an error. The error is io.UnsupportedOperation. Here is the code. file = open("Text_Stuff.txt") print("Welcome to Note pad\n") print("Here you can put text in your Note pad\n") while True: input1 = input("Please enter what do you want to do? See/Edit/Delete ") if input1 == "See": print(file.read()) elif input1 == "Edit": input2 = input("\nPlease enter what do you want to put in the Note pad ") file.write(input2) print("\nYou have successfully rewrite the content of Note pad") elif input1 == "Delete": file.write("") print("\nYou have successfully delete all of the content of Note pad") else: print("\nUmm I think you type the command")