[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: BitVector read-from-file Question

Gabriel Genellina

3/16/2008 11:25:00 PM

En Mon, 10 Mar 2008 14:06:07 -0200, Michael Wieher
<michael.wieher@gmail.com> escribi�:

> I'm trying to read in data from large binary files using BitVector
> (thanks
> btw, for whoever mentioned it on the list, its nice)
>
> I'll be reading the data in as requested by the user, in (relatively)
> small
> chunks as needed.
>
> Problem is I can't read the whole file in at once (its ridiculously
> large)
> and the object created by BitVector(filename="path") doesn't include a
> "seek" function (to reset the filepointer)
>
> Any suggestions on how to this without
> closing/reopening/reading(offset)/read(data) ? (thats a lot of overhead)

(I understand that you don't want to create a BitVector from the whole
file, but from many segments)
You could try to circumvent BitVector oddities reading the file yourself
and creating BitVector objects from the parts you are interested in.

--
Gabriel Genellina