[SciPy-User] fread/fwrite and fromfile

Pauli Virtanen pav at iki.fi
Mon Jun 13 12:35:16 EDT 2011


On Mon, 13 Jun 2011 17:06:41 +0100, Wernher Brevis wrote:
[clip]
>         v = fread(fid, nx*ny, 'd')
> 
> What is the best way to rewrite these using the io tools available in
> numpy, e.g. fromfile?

fread(fid, size, 'd') -> fromfile(fid, 'd', size)




More information about the SciPy-User mailing list