Zebra0.com

java filesReads a text file and displays it

Reads a text file and displays it

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.