110,533
社区成员
发帖
与我相关
我的任务
分享
string resultFile;
string[] arr = null;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
resultFile = openFileDialog1.FileName;
string[] allstr = File.ReadAllLines(resultFile, Encoding.Default);
int first = allstr.Length;
string[][] strlist = new string[first][];
for (int i = 0; i < allstr.Length; i++)
{
arr = allstr[i].Split(' ');
strlist[i] = new string[arr.Length];
for (int j = 0; j < arr.Length; j++)
{
strlist[i][j] = arr[j];
}
}
MessageBox.Show(strlist[3][0].ToString());
}