A simple new method for the study of feeding behavior in the fly Ceratitis capitata is presented, consisting of 22 h of food deprivation and 2 h of food availability. During the latter period the number of flies feeding is counted every 5 min. Results showed that the animals learned to ingest all the food they needed during the 2 h, with a feeding pattern in which the number of flies feeding on a white diet increased in the beginning of the 2-h period and gradually decreased towards the end of it. They also showed that the flies demonstrated a preference for feeding on a red diet (with the same pattern as for the white diet) rather than on a green diet (which did not result in the feeding pattern of an increased number of flies feeding at the beginning of the session and a decreased number at the end). The data suggest this method can be used in a variety of situations in which ingestion is involved.