请问,如何把这些数据读到数组中。注,数据间是制表符非空格
40962093841082093850247421
3562093840982093821256256
4114720938411020938875797
4098209386000209382806242242
请问,如何把这些数据读到数组中。注,数据间是制表符非空格
[解决办法]
string s = "40962093841082093850247421 ";
while(s.IndexOf( '\t\t ')!=-1)
{
s = s.Replace( "\t\t ", "\t ");
}
string[] arr = s.Split( '\t ');
[解决办法]
string s = "4096 20938 4108 20938 502 47 421 ";
string[] ss = Regex.Split(s, @ "\s+ ")