JAVA. Writing a matrix in a file using column information.
- by Dmitry
Hello, everybody!
I have a file in which a matrix is stored. This file has a RandomAccessFile type. This matrix is stored by columns. I mean that in an i-th row of this matrix an i-th column (of a real matrix) is stored. There is an example:
i-th row: 1 2 3 4 (in the file). That means that the real matrix has an i-th column: (1 2 3 4)(transpose).
I need to save this matrix in natural way (by rows) in a new file, which I will then open with FileReader and display with TestArea.
DO you know, how to do that? If so, please help =)