text file format from array
<p>I have no: of arrays, and i like to take it to text file in specific format, for eg.,</p>

<p>'present form'</p>

<pre><code>a= [1 2 3 4 5 ]

b= [ 1 2 3 4 5 6 7 8 ]  

c= [ 8 9 10 12 23 43 45 56 76 78]

d= [ 1 2 3 4 5 6 7 8 45 56 76 78 12 23 43 ]
</code></pre>

<p>The 'required format' in a txt file,</p>

<pre><code>   a   '\t'    b      '\t'     d  '\t'    c

   1   '\t'    1  

   2    '\t'   2  

   3    '\t'   3  

   4    '\t'   4  

   5   '\t'    5  

      6   

      7              

      8
</code></pre>

<p><code>'\t'</code>- 1 tab space</p>

<p>problem is,</p>

<p>I have the array in linear form[a],[b],[c],and d, i have to transpose('required format') and sort [a],[b],[d],and [c] and write it as a txt file</p>
