Hi Friends,
I have a 3D array with n*m*k elements in each dimention(in C#).I want to write this array in a Text file with 5 columns in which the data should be print left to right and line by line one after other.( then read the text back to an equivalent array)
The i dimention has higher hierachy then j and k.
--------------------------Example: suppose we have A[,,]= new double[4,3,2]
A[0,0,0]=1A[1,0,0]=2A[2,0,0]=3A[3,0,0]=4
A[0,1,0]=5A[1,1,0]=6A[2,1,0]=7A[3,1,0]=8
A[0,2,0]=9A[1,2,0]=10A[2,2,0]=11A[3.2,0]=12
A[0,0,1]=13A[1,0,1]=14A[2,0,1]=15A[3,0,1]=16
A[0,1,1]=17A[1,1,1]=18A[2,1,1]=19A[3,1,1]=20
A[0,2,1]=21A[1,2,1]=22A[2,2,1]=23A[3.2,1]=24
I want to write this array in a text file(delimited with TAB) like this:
1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 19 2021 22 23 24 Then read the text file back to an array B the same dimension as A.
Thanks for your help