2015年5月17日 星期日

C#分割字串

string x = 要分割字串.Substring(0,4) ;//從0開始取4碼

string[] x = 要分割字串.Split(',');//遇到逗號分割

沒有留言:

張貼留言