read from binary file
Stefan Andreatta
stefan.andreatta at uibk.ac.at
Thu Jan 20 16:28:11 EST 2000
I have encountered severe problems when trying to read large amounts of data
(unsigned short integer) from a binary file under NT. I use something like:
f = 'C:\\ai.xxx'
file = open(f,'r')
buffer = file.read()
But the read() function always returns just some 1000 bytes of data and the
stops.
Does anybody know, what could be the reason for that, and how I could read
the whole file into a string?
Thanks You
Stefan
More information about the Python-list
mailing list