//string 版
string ss = "sasa, test01, test02, admin, jimmy, jack, benson, ";
string[] splitResult = ss.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0;i < splitResult.Length; i++)
//char 版
string ss = "sasa, test01, test02, admin, jimmy, jack, benson, ";
string[] splitResult = ss.Split(new char[] { ',' });
沒有留言:
張貼留言