private void button6_Click(object sender, EventArgs e)
{
int time = 2;
int Count = 0;
string[,] list = new string[10,10];
string listGyo = new string[10];
// CSVファイルの読み込み
string filePath = Application.StartupPath + "\\aaa.txt";
// StreamReaderクラスをインスタンス化
StreamReader sr = new StreamReader(filePath, Encoding.GetEncoding("UTF-8"));
while (!sr.EndOfStream)
{
// CSVファイルの一行を読み込む
listGyo[Count] = sr.ReadLine();
for (int i = 0; i < listGyo.Length; i++)
{
if (listGyo[i] == null) break;
// 1行分のデーターを、カンマ区切りで分離
string line = listGyo[i].Split(',');
string[,] table = new string[listGyo.Length, line.Length];
// 出力用配列に格納
for (int j = 0; j < line.Length; j++)
{
table[i, j] = line[j];
}
}
Count++;
}
}