Better way to read the whole text file.