Write code that does the following: opens a file named MyName.txt, writes your first name to the

Question:

Write code that does the following: opens a file named MyName.txt, writes your first name to the file, and then closes the file.

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

Step by Step Answer:

Question Posted: