string.insert problem
I am trying to trim s3 off the end of stringToSplit. It splits into the array ok but when i call
string.insert() it simply doesn't add anything to newString.
here is the code:
string stringToSplit = "s1/s2/s3";
string[] stringArray = stringToSplit.Split('/');
string newString = "";
for(int y = 0;y != stringArray.Length - 1;y++)
{
newString.Insert(newString.Length,stringArray[y].ToString());
}
sacrespPosted Dec 6, 2003, 10:19 AM
tsuman_inPosted Dec 6, 2003, 9:04 AM
sacrespPosted Dec 5, 2003, 4:47 PM
prasad.narwadkarPosted Dec 3, 2003, 5:32 AM
Mahesh ChandPosted Dec 1, 2003, 8:37 AM
mreisterPosted Nov 30, 2003, 3:51 AM