How the Code Works:
-
Create a New File: This option allows the user to create a new file and input text. The user types until they input "END," which stops the input process and saves the file.
-
Edit Existing File: Opens an existing file in append mode and allows the user to add new lines of text. The user also stops input by typing "END."
-
View File Contents: This option displays the contents of a specified file.
-
Exit: Exits the program.