S
Senthil
Code
----------------------
string Line = "\"A\",\"B\",\"C\",\"D\"";
string Line2 = Line.Replace("\",\"","\"\",\"\"");
string [] CSVColumns = Line2.Split("\",\"".ToCharArray());
I expect 4 values in my CSVColumns Array ("A", "B", "C", "D"). But it
returns me 18 values with lot of empty strings.
Let me know if I am missing anything.
Thanks
----------------------
string Line = "\"A\",\"B\",\"C\",\"D\"";
string Line2 = Line.Replace("\",\"","\"\",\"\"");
string [] CSVColumns = Line2.Split("\",\"".ToCharArray());
I expect 4 values in my CSVColumns Array ("A", "B", "C", "D"). But it
returns me 18 values with lot of empty strings.
Let me know if I am missing anything.
Thanks