string strtest = "aaaaaagskgagskjcgjkwvjwvk";
string strtest2 = strtest.SubString(0,指定的长度);
string sss="关键字1,关键字2,关键字3";
string[] tm = sss.Split(new char[] { ',' });
string 选取1=tm[0].ToString();
string 选取2=tm[1].ToString();
string 选取3=tm[2].ToString();
转载于:https://www.cnblogs.com/yzwdli/archive/2007/09/17/895565.html