C# String Replace , to "," for .csv output

Jul 7 2015 11:08 AM
I want to replace , with a "," in my .csv string.

For Example:

Change this
1,S0000093,GNL-000099,Aarpee Hygiene Pvt Ltd,H0010AW0101,G1150505010,G1150504070406,14,GNL-005111,,35637153767

to this
1,"S0000093","GNL-000099","Aarpee Hygiene Pvt Ltd","H0010AW010","G1150505010","G1150504070406","14","GNL-005111","","35637153767"

I have been trying the line.Replace("\"","\"\"")+"\""; but it get anything working properly.

Any help would be appreciated....Thanks in Advance..

Answers (1)