numpy.ndarray.tofile
numpy.ndarray.dumps
Dump a pickle of the array to the specified file. The array can be read back with pickle.load or numpy.load.
file : str
A string naming the dump file.