read a file in reverse line-by-line