successfully displays the contents of the text file