Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to save a dictionary as a csv file in c#

String csv = String.Join(
    Environment.NewLine,
    data.Select(d => $"{d.Key};{d.Value};")
);
System.IO.File.WriteAllText(pathToCsv, csv);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #dictionary #csv #file
ADD COMMENT
Topic
Name
8+2 =