nietras / Sep

World's Fastest .NET CSV Parser. Modern, minimal, fast, zero allocation, reading and writing of separated values (`csv`, `tsv` etc.). Cross-platform, trimmable and AOT/NativeAOT compatible.
http://nietras.com
MIT License
840 stars 33 forks source link

How to start read not standard csv file. #141

Closed Diddlik closed 4 months ago

Diddlik commented 4 months ago

I have csv files that have the first 3-4 lines of technical information and only then comes the correct format in csv form with header and data.

Can I still use the package @nietras?

nietras commented 4 months ago

Not directly. This is not supported by Sep. You can always write a wrapper around a TextReader to handle this though. Let that handle skipping the first data.

Diddlik commented 4 months ago

I have not found in wiki that I can e.g. pass a stream to the reader, where I have e.g. skipped 4 lines.

nietras commented 4 months ago

wiki? perhaps you mean readme, the API listed at end shows all overloads. could be added to readme of course. :)

Diddlik commented 4 months ago

I mean readme, sorry ;) Thank you for quick response, I will try ;)