C++ Builder 4.0 - Storing bits as file
Posted on 2001-06-15
In C++ Builder 4.0, how to store bits from array of '1' and '0' to a file? I have tried calling the bits from the array and put it into a string... But when i saved it as a file, the size is large (the bits are stored as bytes, not bits).
For example, i have 4000 bits of '1' and '0' in an array. When i saved it to a file, the size is around 4000 bytes (4KBytes). What i want is that the size should be 4000 bits, but not 4000 bytes....