Excessive intake of spicy stimulating food can lead to congestion, oedema and erosion of the local mucosa of the anus, which further aggravates the local pain and the possibility of blood in the stool. It is advisable not to overindulge in spicy stimulating food when you have painful piles or local intestinal inflammation of the anus, and to eat more light vegetables and fruits.