How do i go about putting the last line of a text file in a string?