ben-strasser / fast-cpp-csv-parser

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

How can i skip specified line? #114

Open nickhuangxinyu opened 3 years ago

nickhuangxinyu commented 3 years ago

Hi, ben.

Great work! this helps me a lot.

I want to ask if there is method to skip some line which not have same format with others?

For example. assume i have file which looks like this:

price, size, ticker 100, 2, 000001 200, 2, 000100 price,size, ticker 300,3, 000400

when i want to use in.read_row, it always crash when read the second "price, size, ticker" Is there any method to skip this?

Thanks a lot

lperez5 commented 2 years ago

I believe next_line() should work, currenlty trying this out aswell.