Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D674F1077F for ; Tue, 30 Apr 2013 09:02:32 +0000 (UTC) Received: (qmail 36815 invoked by uid 500); 30 Apr 2013 09:02:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 36758 invoked by uid 500); 30 Apr 2013 09:02:31 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 36749 invoked by uid 99); 30 Apr 2013 09:02:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 09:02:31 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of glammers@tecsisa.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 09:02:26 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UX6Rn-000428-HU for users@camel.apache.org; Tue, 30 Apr 2013 02:02:03 -0700 Date: Tue, 30 Apr 2013 02:02:03 -0700 (PDT) From: Guillermo To: users@camel.apache.org Message-ID: <1367312523512-5731784.post@n5.nabble.com> Subject: Best strategy for skipping lines in CSV files with bindy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using the library Bindy for parsing files and I recently found a problem. Let me explain: I read in the camel docs that I can skip the first line of the CSV, but what is the correct way to skip more than one line? Three lines at the beginning of the file in my case and two at the end of the file. The file looks like this: unimportant info;unimportant info;unimportant info unimportant info unimportant info;unimportant info relevant info;relevant info;relevant info;relevant info [...] relevant info;relevant info;relevant info;relevant info ;;unimportant info;unimportant info;;;unimportant info;unimportant info;unimportant info;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;; Where "relevant info" has the same format for all rows and is the data that I need to parse with my csv record definition. Is there any way to skip the lines automatically? What is the best strategy to do that? Thanks in advance. Guillermo. Additional info: Using camel version 2.9.4 -- View this message in context: http://camel.465427.n5.nabble.com/Best-strategy-for-skipping-lines-in-CSV-files-with-bindy-tp5731784.html Sent from the Camel - Users mailing list archive at Nabble.com.