A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Cinchoo/ChoETL/wiki/QuickCSVLoad below:

QuickCSVLoad · Cinchoo/ChoETL Wiki · GitHub

To load CSV file, use ChoCSVReader component to parse it. Sample below shows how to load CSV file (Emp.csv)

Id,Name
1,Tom
2,Carl
3,Mark
foreach (dynamic e in new ChoCSVReader("Emp.csv").WithFirstLineHeader())
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);
var reader = new ChoCSVReader("Emp.csv").WithFirstLineHeader();
dynamic e;
 
while ((e = reader.Read()) != null)
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);
public class Employee
{
    public int Id { get; set; }
    public string Name { get; set; }
}
foreach (var e in new ChoCSVReader<Employee>("Emp.csv").WithFirstLineHeader())
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);

Please visit below article for detailed walk-through of CSV reader

Cinchoo ETL - CSV Reader


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4