Stop parsing at certain line
Nikolai1024 opened this issue · comments
Nikolai1024 commented
Hi,
Does anyone know how to stop parsing process once it reaches a certain line #? This would be very helpful.
Thanks
Nick
Caylan commented
I think you'd use the delegate method - (void)parser:(CHCSVParser *)parser didBeginLine:(NSUInteger)recordNumber, and then send - (void)cancelParsing to the CHCSVParser object.
Nikolai1024 commented
That worked perfectly. Thanks!