Write code that opens a file named NumberList.txt for writing, but does not erase the files contents

Question:

Write code that opens a file named NumberList.txt for writing, but does not erase the file’s contents if it already exists.

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

Step by Step Answer:

Question Posted: