My file is having unwanted Control-M characters at the end of the records and because of this file is not getting processed.
Please suggest how can I use ReplaceAll function in Groovy to remove it .
Something like this should work....
csvFileContent.replaceAll("\r\n", "\n");