Write code that does the following: opens a file named MyName.txt, reads the first line from the

Question:

Write code that does the following: opens a file named MyName.txt, reads the first line from the file and displays it, and then closes the file.

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

Step by Step Answer:

Question Posted: