read data from data file.