CSVHelper to skip record before header
问题 I have data in a file in following format. HEADER|ReportItem Name: Margin Ri..... Account Id/Margin Id|Account Name|Ba...... // the row with headers Data row 1 Data row 2 TRAILER|Record Count: 2 This is throwing an error - I believe due to fact there is a that row before the actual reader row. using (var textReader = File.OpenText(path)) { var csv = new CsvReader(textReader); csv.Configuration.RegisterClassMap<GsClassMap>(); csv.Configuration.TrimOptions = TrimOptions.Trim; csv.Configuration