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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -