binary file parsing in C++

Eljay Love-Jensen eljay@adobe.com
Wed Dec 10 13:10:00 GMT 2003


Hi Justin,

>Is there any way to read through a file bit by bit, instead of character by character?

You'll have to write your own bit-by-bit reader.

A class that HAS-A ifstream, and whose "get" method returns a bit (via bool or int or enum Bit { Zero, One }).

Shouldn't be very hard.

HTH,
--Eljay




More information about the Gcc-help mailing list