using FileHelpers; public class MyData { public string Name; public int Age; } var engine = new FileHelperEngine(); var records = engine.ReadFile("data.csv"); foreach (var record in records) { Console.WriteLine($"Name: {record.Name}, Age: {record.Age}"); }
using FileHelpers; public class MyData { public string Name; public int Age; } var engine = new FileHelperEngineIn this example, we define the same `MyData` class as before, and create a `FileHelperEngine(); var data = new List () { new MyData() { Name = "John", Age = 30 }, new MyData() { Name = "Jane", Age = 25 }, }; engine.WriteFile("data.txt", data, ",");