Reading CSV with CsvHelper

Posted by Joe Enos on February 22, 2021 · 1 min read

The CsvHelper library makes it easy to read and write CSV in .NET. Exploring the examples shows you how to map a reader to a data class, through attributes or a class map, and gives you various options on transforming the data.

Here's an example showing how to use it to read a CSV file.

View code on GitHub