-
Notifications
You must be signed in to change notification settings - Fork 138
QuickCSVLoad
Cinchoo edited this page Jun 16, 2017
·
17 revisions
To load CSV file, use ChoCSVReader component to parse it. Sample below shows how to load CSV file (Emp.csv)
1,Tom
2,Carl
3,Mark
foreach (var e in new ChoCSVReader("Emp.csv"))
Console.WriteLine(e.ToStringEx());
var reader = new ChoCSVReader("Emp.csv");
object rec = null;
while ((rec = reader.Read()) != null)
Console.WriteLine(rec.ToStringEx());
public class Employee
{
public int Id { get; set; }
public string Name { get; set; }
}
foreach (var e in new ChoCSVReader<Employee>("Emp.csv"))
Console.WriteLine(e.ToStringEx());
Please visit below article for detailed walk-through of CSV reader
©2017 Cinchoo Inc