update a data file