I am trying to read a tab delimited CSV file and parse it with CSVHelper.
I have the following :
_reader = new StreamReader(_stream);
_csvReader = new CsvReader(_reader);
_csvReader.Configuration.Delimiter = "\t";
but the reader fails to recognize and parse the file correctly
Any ideas ?
What are the possible delimiters with CSVHelper ?
So for some reason, it turns out that it works only when I do the following:
_reader = new StreamReader(_stream);
CsvHelper.Configuration.Configuration myConfig = new
CsvHelper.Configuration.Configuration();
_csvReader.Configuration.Delimiter = "\t";
_csvReader = new CsvReader(_reader, myConfig);