Updated read file line by line.