There is no way to perform this with NeoJSON or any other CSV framework I'm aware of.
I had to deal with that kind of "format" (which is likely an export format), and the way to deal with it was to process each "segment" using a different instance of the CSV reader, the segments where scanned in the stream using the delimiting heuristics of your choice (headers, blank lines, etc.), and then each segment was extracted and passed as argument to the reader of that segment. The drawback was that if the file was big there was no way to have "a stream over a stream" (like a window function), so passing the segment to the reader implied copying its string contents within the segment delimiters. It's something I already put some thought into, but never had the will to code and share publicly. Regards, Esteban A. Maringolo 2017-07-26 12:02 GMT-03:00 Sean P. DeNigris <s...@clipperadams.com>: > I have a CSV file that has several subsections, each with its own format. > What I'd like to do is parse one, reset the NeoCSVReader, set it up for the > next section, and continue. I didn't see an API for this. Is it possible? > Thanks. > > > > ----- > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/NeoCSV-on-Irregular-Files-tp4956850.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >