Printing entire array in C#
Posted
by DMan
on Stack Overflow
See other posts from Stack Overflow
or by DMan
Published on 2010-04-18T00:45:47Z
Indexed on
2010/04/18
0:53 UTC
Read the original article
Hit count: 499
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.
© Stack Overflow or respective owner