Hi, I need to add extra lines in CSV files, but without “BRACES {}” in the second line. I’d like to maintain the same format as first line given by “Export[]” command.
Thanks in advance,
Gustavo
writetocsv.nb (4.41 KB)
Hi, I need to add extra lines in CSV files, but without “BRACES {}” in the second line. I’d like to maintain the same format as first line given by “Export[]” command.
Thanks in advance,
Gustavo
writetocsv.nb (4.41 KB)
Gustavo,
This should do the trick. Create a string in CSV format and write the string to the file:
Export["output.csv", data1];
str = OpenAppend["output.csv"];
WriteString[str, ExportString[data2, "CSV"]];
Close[str];
Regards,
Neil