4096 20938 4108 20938 502 47 421
356 20938 4098 20938 21 256 256
41147 20938 4110 20938 875 79 7
4098 20938 6000 20938 2806 242 242
请问,如何把这些数据读到数组中。注,数据间是制表符非空格
356 20938 4098 20938 21 256 256
41147 20938 4110 20938 875 79 7
4098 20938 6000 20938 2806 242 242
请问,如何把这些数据读到数组中。注,数据间是制表符非空格
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+")