Hello Praveen,
Refer the below link to add conditions in ICO.Blog is about adding in Receiver deterimation the same should you do in ICO receivers tab.
Xpath Condition in Receiver Determination - Process Integration - SCN Wiki.
And Praveen you should have try catch blog and in case of error you should write string buffered writer to write the file.