【发布时间】:2011-08-19 15:06:12
【问题描述】:
我正在寻找一种在 CSV 文件的不同单元格中写入字符串的方法。
我正在使用这个程序,
private void button1_Click(object sender, EventArgs e)
{
string filePath = @"E:\test.csv";
string a = "a";
string b = "c";
string c = "d";
string d = "d";
File.WriteAllText(filePath, a);
// how can add the other strings in the next cells ?
}
我这里需要的是在第一个单元格中写“a”,在第二个单元格中写“b”,c ..
【问题讨论】: