Is there any C++ function to read/write files bit by bit?

Discuss all aspects of programming here.

Moderator: The Mod Squad

Is there any C++ function to read/write files bit by bit?

Postby sirams » Tue Dec 21, 2004 6:11 am

I am writing a program to compress data and it would be nice if there was a function to perform file I/O operations not by bytes but by bits. Is there any function?
Thanks.
sirams
Green Belt
Green Belt
 
Posts: 121
Joined: Fri May 14, 2004 1:03 am

Postby atang1 » Wed Dec 29, 2004 4:07 am

Pkzip does the data compression bit by bit to consolidate the 0s. With machine language programs, compression is only 10%. All programs use native machine language, so bit by bit compression is a thing of the past. You have to study more modern data compression mothods to keep up to date. HDD use PRML, and graphics has 900% compression.

Bit by bit you have to take them from the dram in bit streams.
atang1
 


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest