ben-strasser/fast-cpp-csv-parser

Skip lines at beginning of csv

Opened this issue · 2 comments

I have a csv file with about 20 rows of setup information, followed by a header, and then the data.
Is there a way for CSVReader to read this file ignoring the first 20 rows? I'm able to parse a file without this setup information.

You can call next_line 20 times.

next_line isn't skipping the row for me @ben-strasser

my csv looks like this

word1, word2, word3, word4
1, 2, 3, 4
5, 6, 7, 8

I would like to skip the first row, then read rows 2 and 3 into a vector