title: Numpy load result file saved in append mode
body: <p>I have one big file saved using numpy in append mode, i.e., it contains maybe 5000 arrays, each with shape, e.g. [1, 224, 224, 3], like this way:</p>
  
  <pre><code>filepath = 'hello'
  for some loop:
      ...
      with open(filepath, 'ab') as f:
          np.save(f, ndarray)
  </code></pre>
  
  <p>I need to load the data in the file, maybe all arrays, or maybe in some generating mode, like reading the first 100, then the next 100, and so on. Is there any method to do this properly? Now, I only know if I use np.load, I can only get one array each time, and I don't know how to read the 100 to 199 arrays.</p>
  
  <p><a href="https://stackoverflow.com/questions/35747614/loading-arrays-saved-using-numpy-save-in-append-mode">loading arrays saved using numpy.save in append mode</a>
  This question talk about something on this, but seems not what I want.</p>