帮我看看,谢谢啦
class Program{
static void Main(string[] args)
{ string path = @"d:\hhk.txt";
string[] lines = System.IO.File.ReadAllLines(path);
double[,] data = new double[lines.Length, 4];
for (int i = 0; i < lines.Length; i++)
{
string[] toks = lines[i].Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
System.Diagnostics.Debug.Assert(toks.Length == 4);
for (int j = 0; j < 4; j++)
{
bool succeeded = double.TryParse(toks[j], out data[i, j]);
System.Diagnostics.Debug.Assert(succeeded);
}
}
}
}
这段代码前天运行没问题,今天运行就出错了,信息如下:
请问是什么原因导致出错?? --------------------编程问答-------------------- 信息看不到啊???????????????
补充:.NET技术 , C#