I am having several files which I want to convert from Dos to Unix. Is there any API or method which will help me to do this?
Most unix/linux distributions have utility named unix2dos and dos2unix commands.
unix2dos
dos2unix
EDIT: Just copy your file to unix machine and run dos2unix *.
dos2unix *
You can also find this utility for Windows and do the same.