I have a List of 2D arrays.
for example as u can see in the code matrix contains a 2D array. And i want to save them in the file. The problem is that saving them is going by row not by Column!!!
How can i save them by column. these is something that i should change. But i can't figure it out.
StreamWriter data = new StreamWriter("caracteristiques.car");
for (int i = 0; i < matrix.Count; i++)
for (int x = 0; x < matrix[i].GetLength(1); x++)
if (x > 0) data.WriteLine();
for (int y = 0; y < matrix[i].GetLength(0); y++)
string value = matrix[i][y, x];
if (y > 0) data.Write(" ");