read file by line.