read file line by line using scanner