Completed readEntireFile