.net - FileHelpers not influence on data -


when define comma file separator new file noticed when placed comma within data comma placed in output file, mean filehelpers not influence on data automaticly or? instance quotes or whatever thought filehelpers contains inner engines "correct" such things automaticly.

you must add [fieldquoted] make library auto use quotes when fields contains delimiter

http://www.filehelpers.net/docs/html/t_filehelpers_fieldquotedattribute.htm

also check quotemode parameter

http://www.filehelpers.net/docs/html/t_filehelpers_quotemode.htm

[delimitedrecord(",")] public class records {    // contains " on output , require read    [fieldquoted(quotemode.alwaysquoted)]    public string name;     // add " if data cantains , , read no quotes    [fieldquoted(quotemode.optionalforboth)]    public string track;     [fieldquoted]    public string worldprice; }    

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -