Hi Natarajan,
you can create the 2 interfacess for this case.
1 ) CSV(FCC) to XML - please map the first field and last field in to the target structure
2) with out mapping you need to create the different scenario to send same text file to another folder.
Regards
Srinivas