C# でテキスト ファイルを読み取り、それを SQL データベースに保存しようとしています。列の名前である最初の行をインポートに含めたくないことを除いて、私は問題ありません。これらを除外する最も簡単な方法は何ですか?
コードはこんな感じ
while (textIn.Peek() != -1)
{
string row = textIn.ReadLine();
string[] columns = row.Split(' ');
Product product = new Product();
product.Column1 = columns[0];
etc.....
product.Save();
}
ありがとう