I have a simple 2D array:
int[,] m = { {0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0} };
How can I print this out onto a text file or something? I want to print the entire array onto a file, not just the contents. For example, I don’t want a bunch of zeroes all in a row: I want to see the
{{0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0} };
in it.
Just iterate over it and produce the output. Something like