by piles, do you mean hemmeroids? i had an anal fissure (oh the fun!) with a hemmeroid. this is how i cured it. it may help you, but it certainly wont hurt.
i got high quality coconut oil, food grade. then i applied some directly the area before and after every bowel movement, generously.
then i made some small torpedo shaped coconut suppositories. its easy, just let the coconut oil get soft but not too soft then form the suppositories by hand, then put them in the freezer. once frozen solid you can use them.
before going to bed insert the coconut oil suppository like you would any suppository. all night long the coconut oil will work to heal. do this everyday for a week or so and you will see great improvement.