Updating the file if it already exists