Hi,
Here i can see more feasible and efficient code for converting Multidimensional array into CSV file. Please check this link,
Multidimensional Array to CSV[
^]
Link show you CSV from string array but hope you can convert this function into double array.
[Update]
Updated Solution : This is what i have created. This may be more efficient.
string path = "mycsv.csv";
double[,] multiDimensionalArray = { { 1.1, 2.2, 3.3 }, { 4.4, 5.5, 6.6 } };
var enumerator = multiDimensionalArray.Cast<double>()
.Select((s, i) => (i + 1) % 3 == 0 ? string.Concat(s, Environment.NewLine) : string.Concat(s, ","));
var item = String.Join("", enumerator.ToArray<string>());
File.AppendAllText(path, item);
[/Update]
Thanks
-Amit Gajjar