Suppose you are given a text file that contains the names of people. Every name in the

Question:

Suppose you are given a text file that contains the names of people. Every name in the file consists of a first name and last name. Unfortunately, the programmer who created the file of names had a strange sense of humor and did not guarantee that each name was on a single line of the file. Read this file of names and write them to a new text file, one name per line. For example, if the input file contains

Bob Jones Fred

Charles Ed

Marston

Jeff

Williams

the output file should be

Bob Jones

Fred Charles

Ed Marston

Jeff Williams

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

Step by Step Answer:

Question Posted: