Hi,
I have this code for separating the row in coulmns in csv file I want to separate the columns where there is " to " " in " and ":" but I don't know how Cana nybody help me please?
var csvRows = []
for (var n = 0, l = csvData.length; n < l; ++n) {
csvRows.push(csvData[n].join(' to ')); // unquoted CSV row
}
csvString = csvRows.join('\n');
}
exportCSV();
Thanks

Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 11, 2014, 8:24 PM EDT
hi,
you can use split function separating the columns in csv file text
for example
string a = "this to sdsd in dfdfd : sdsd";
var test = a.Split(new string[] { " to ", " in ", ":" }, StringSplitOptions.None);
hope this will help you.
NelRank #2,060 · 702 reputationPosted Sep 12, 2014, 5:57 AM EDT