read file line by line usinmg reader
read file line by line using reader