Energy from an exothermic reaction is absorbed by a container of water.
The change in the temperature of water gives the measure of the amount of heat added.
Burn the food.
Calculate the amount of energy needed to cause that temp increase.
This is an estimate of the amount of energy in food.