verstapp wrote:wishing to write/read a list of integers to a binary file, i started with Alex's/Nadia's answers from
http://stackoverflow.com/questions/8078 ... -in-python
the example worked perfectly, as did the initial write to generate my file.
however, when i tried to read my 200MB file i got
ValueError: string length not a multiple of item size
python 2.7, win7.
def readinprimes4(): #read binary file of primes.
raw_input('finished reading in')
p=[int(i) for i in aa]
Users browsing this forum: No registered users and 1 guest