The program below reads a file of names and displays them.
It reads the entire line, so if there is more information on each line, it reads all of the line as name. It displays the exact contents of the file.