read line at the end