add the data to the file