private void button1_Click(object sender, EventArgs e)
{
double[,] data_in = new double[250, 6];
int i, j;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string path = openFileDialog1.FileName;
StreamReader sr = new StreamReader(path);
for (i = 0; i < 250; i++)
{
string line = sr.ReadLine();
string[] data = line.Split(new char []{' '});
for (j = 0; j < 6; j++)
{
data_in[i, j] = double.Parse(data[j]);
}
}
TXT数据文件