Write a program that reads a file, removes any blank lines at the beginning or end of

Question:

Write a program that reads a file, removes any blank lines at the beginning or end of the file, and writes the remaining lines back to the same file.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: