// 创建StringBuilder对象
StringBuilder csvContent = new StringBuilder();
csvContent.AppendLine("a,b,v,d,");
csvContent.AppendLine("1,3,6,5,");
string _csvpath="d:\";
File.WriteAllText(_csvpath.Replace("\\","\\\\"), csvContent.ToString());