read data from file by line