Updates the file