Closed NN--- closed 7 years ago
Can you be more specific to the problem you are having? CsvHelper does exactly what you're saying.
WriteRecord and WriteHeader add new line character in the end which I don't want to be written.
The newline char is part of the CSV spec though. You want to be able to flush records to the writer without it appending a newline char? Do you want to always do this, or just for the header? I'm curious what the use case is here.
Wow, Didn't know that it is part of spec.
It's very small and simple, but very pretty strict. The unfortunate part is no one seems to follow it. https://tools.ietf.org/html/rfc4180
There are no simple helper methods to write CSV into simple string.
I would to have something like:
Thanks