Updating records in a file