From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Bits Date: 29 Jun 2000 11:09:11 GMT Organization: Aachen University of Technology (RWTH) Lines: 14 Message-ID: <8jfaon$c6e$1@nets3.rz.RWTH-Aachen.DE> References: <8jdv9d$dn5$1 AT news DOT netvision DOT net DOT il> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 962276951 12494 137.226.32.75 (29 Jun 2000 11:09:11 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 29 Jun 2000 11:09:11 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Avi Berkovich wrote: > Hello > Is there a C++ function which can manage individual bits extractions from a > file? I strongly doubt it. You'll have to read bytewise, and introduce a layer of functions to slice those bytes into the required portions of bits, and return those to the caller, while the remaining bits are kept as internal state by those functions. I.e. you'll want to derive your own 'bitstream' class out of an istream one. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.