[Numpy-discussion] Another question on reading from binary FORTRAN file

Sturla Molden sturla@molden...
Tue Mar 10 10:55:57 CDT 2009


Mark Bakker wrote:
> Thanks, Mike.
> This seems to be a really easy way.
> One more question.
> It turns out my file also contains a character string of 16 characters.
> I tried
> np.fromfile(fd,np.str,16)
>   
np.fromfile(fd,np.uint8,16).tostring()





More information about the Numpy-discussion mailing list