list<string>
約350行(13列)の.csvファイルをC#で書き込もうとしています。ループでファイルに書き込みますが、リストの一部 (206 行半) しかファイルに書き込まれません。これは私のコードです:
StreamWriter file = new StreamWriter(@"C:\test.csv", true);
foreach (string s in MyListString)
{
Console.WriteLine(s); // Display all the data
file.WriteLine(s); // Write only a part of it
}
ファイルが正しく入力されないのはなぜですか? 考慮すべき制限はありますか?