尝试分成两个单独的数组 [英] tryign to split into two seperate arrays
问题描述
我知道这个代码可以工作但是如何将两个值拆分成diffenet数组
foreach(File.ReadAllLines中的字符串问题(&textfile) .txt"))
           
              {
             
                      string [] test = question.Split('?');
                  foreach(测试中的字符串部分)
                  {
$
                      Console.WriteLine(" {0}");
                      Console.ReadLine();
                        ;
                      }¥b $ b        
              }
您好,
您可以使用copyto方法及其重载
hi, i hhave this code which works but iono how to split the two values into diffenet arrays
foreach (string question in File.ReadAllLines("textfile.txt"))
{
string[] test = question.Split('?');
foreach (string part in test)
{
Console.WriteLine("{0}");
Console.ReadLine();
;
}
}
Hi,
You can use the copyto method with its overloads
这篇关于尝试分成两个单独的数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!