Posted on 2010-01-06
I have recently come across FileHelpers. I have tried to read tutorials on it but still havent got the concept of it.I am trying to use it to read/write xml file.
public class Orders
<FieldQuoted(""""c, QuoteMode.OptionalForRead, MultilineMode.AllowForRead)> _
Public String CustomerID;
FileHelperEngine engine = new FileHelperEngine(typeof(Orders));
/// to Read use:
Orders res = (Orders) engine.ReadFile("input.txt");
foreach (Orders order in res)
Console.WriteLine(order.CustomerID + " - " +
When I say order.CustomerID, does it get the value of CustomerID element in the xml file? How does it do ir, when I havent specified the element name or location anywhere? What I am I missing ?