I want to take a simple, single column file containing floats into multiple numpy arrays that are each created from the same number of lines.
So, for example, if the file has 180 lines, I'd like to create 3 numpy arrays, one containing data from lines 1-60, 2nd from 61 to 120, and 3rd from 121 to 180.
I was attempting to use the np.fromfile() function, but this doesn't seem to be able to respond to file pointers (as in, seek to 1st line, read 60 lines, then seek to 61, read 60, ...). Does anyone know how this can be done efficiently?