Thanks for the response. I would like to use Camel to read the file, process it and generate a new CSV file to send it to a different system.
I get this file from a different system X and I need to process and transform it to CSV file in a different format which can be understood by system Y. I can try to do that but the problem here is task and data are always associated with each other. I'm not sure how to dynamically split based on task.1 or task.2 or task.n. My goal is to read this file and generate a new CSV file in a different format. Can you point me/send me sample code to split the file by task? I do really appreciate your help. Thank you. On Sep 23, 2016 01:25, "DariusX [via Camel]" < ml-node+s465427n578794...@n5.nabble.com> wrote: It isn't clear how you want to use Camel in this picture. if it is simply to poll for files, and if the file is not huge, a simple/naive approach would be to read in the whole file and do all the steps you need. All as a single Processor following the "from:file" consumer. The the Data/Task sections always follow one another, as in your example, you could attempt to split the file into sections that way, and handle each split task differently, based on the "operation". It will be more complex to code. So the question is: what would you gain by this? ------------------------------ If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Need-help-in-processing- comma-seperated-text-file-tp5787930p5787941.html To unsubscribe from Need help in processing comma seperated text file, click here <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5787930&code=cmFnaGF2ZW5kZXIuYW50aHdhckBnbWFpbC5jb218NTc4NzkzMHwxMTkyNDM5ODIz> . NAML <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://camel.465427.n5.nabble.com/Need-help-in-processing-comma-seperated-text-file-tp5787930p5787945.html Sent from the Camel - Users mailing list archive at Nabble.com.