S
Speed
Hi,
I have a 57000 bit long binary number and I want to save it to a file.
At the moment I am using an unsigned char array to store the array and
then fwrite to store it as follows.
fwrite( BinArr, sizeof(unsigned char), 57000, BinFile);
But it is a waste of space as this takes up around 57 KB which if I
could store as bits would only take up around 7 KB.
Could you please tell me if this could be done.
Thanks a ton.
Speed.
I have a 57000 bit long binary number and I want to save it to a file.
At the moment I am using an unsigned char array to store the array and
then fwrite to store it as follows.
fwrite( BinArr, sizeof(unsigned char), 57000, BinFile);
But it is a waste of space as this takes up around 57 KB which if I
could store as bits would only take up around 7 KB.
Could you please tell me if this could be done.
Thanks a ton.
Speed.