Closed LiorBanai closed 9 months ago
You can use csvReader.Parser.RawRecord
@Rob-Hague great. thanks!
btw can I replace the separator character? in my csv I have | as separator and not ,
Yes you can do something like
var config = new CsvConfiguration(CultureInfo.InvariantCulture)
{
Delimiter = "|"
};
using var csvReader = new CsvReader(textReader, config);
See https://joshclose.github.io/CsvHelper/ (or the unit tests in the repo) for more documentation/examples
Great. Thanks again!
I would like to have access to the raw parsed line in addition to the parsed fields. This will help me sicne I also need the raw text for ech line to process separately.