csv - Ignore NewLIne inside a field in FileHelpers C# -
i new using filehelpers class parsing csv. have file this...
"background","info","agent abcdefg =================== context tenant: {vendor: 1, customer: 719046046}","2,140.69","","7/11/2017 3:30 am"
i ignore newline , read 1 string. can please help?
so @ end of line \r\n , want removed.
you can use [fieldquoted] this:
public class yourrecordclass { [fieldquoted()] public string field1; [fieldquoted()] public string field2; [fieldquoted(quotemode.optionalforboth, multilinemode.allowforboth)] public string field3; [fieldquoted()] public string field4; [fieldquoted()] public string field5; [fieldquoted()] public string field6; }
Comments
Post a Comment