Write some code that asks the user to enter either of the words append or new. According

Question:

Write some code that asks the user to enter either of the words append or new. According to the user response, open either an existing text file to which data can be appended or a new, empty text file to which data can be written. In either case, the file’s name is a string given by the variable fileName.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: