NeoCSV #skipToNextLine or #skipRemainingColumns ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NeoCSV #skipToNextLine or #skipRemainingColumns ?

Paul DeBruicker
Hi -

I want to import the first and seventh column from a set of 50 csv files each of which could have 28 - 34 columns.  Is there a way to have NeoCSV skip the remaining columns automatically (e.g. 8 and up) ?

Thanks

Paul


Reply | Threaded
Open this post in threaded view
|

Re: NeoCSV #skipToNextLine or #skipRemainingColumns ?

Sven Van Caekenberghe-2
Hi Paul,

> On 3 Nov 2017, at 04:14, PAUL DEBRUICKER <[hidden email]> wrote:
>
> Hi -
>
> I want to import the first and seventh column from a set of 50 csv files each of which could have 28 - 34 columns.  Is there a way to have NeoCSV skip the remaining columns automatically (e.g. 8 and up) ?
>
> Thanks
>
> Paul

There are NeoCSVReader>>#addIgnoredField and #addIgnoredFields:

You could maybe use the header to determine how many fields to skip.

There is no, 'skip all remaining fields' yet.

HTH,

Sven