This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I have to create (through a number of computational methods) a matrix of data. As an example here is one:
What I need to do is store this matrix in a text file, tab-delimited.
What I would like to know is whether it would be easier to create a 2-dimensional [n][n] array first and then copy the contents of it over to the file, or form the matrix in the file directly.
Thanks
Moosey knows best
Ernest Friedman-Hill
author and iconoclast
Marshal
I would think not only easier, but far cleaner. Separating your I/O code and your computational code into different methods (or even different classes) will make the whole thing easier to develop.