title: How to write a multidimensional array to a text file?
body: <p>In another question, other users offered some help if I could supply the array I was having trouble with. However, I even fail at a basic I/O task, such as writing an array to a file.</p>
  
  <p><strong>Can anyone explain what kind of loop I would need to write a 4x11x14 numpy array to file?</strong></p>
  
  <p>This array consist of four 11 x 14 arrays, so I should format it with a nice newline, to make the reading of the file easier on others.</p>
  
  <p><strong>Edit</strong>: So I've tried the numpy.savetxt function. Strangely, it gives the following error:</p>
  
  <pre><code>TypeError: float argument required, not numpy.ndarray
  </code></pre>
  
  <p>I assume that this is because the function doesn't work with multidimensional arrays? Any solutions as I would like them within one file?</p>