get data from file