ben-strasser / fast-cpp-csv-parser

fast-cpp-csv-parser
BSD 3-Clause "New" or "Revised" License
2.09k stars 435 forks source link

Skip lines at beginning of csv #103

Open mellery opened 4 years ago

mellery commented 4 years ago

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.

ben-strasser commented 3 years ago

You can call next_line 20 times.

lperez5 commented 2 years ago

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