how ican get the last line in a certain file