I know what bit fields are.Write a program to compress a data file using bit field method. Write another program to decompress the above file.
But what exactly is "bit field method" ?
I think that if the file is a text file, I can use 7 bits for each char and dump structs full of 7 bit chars to a binary file which will be slightly smaller in size.
But that would not work at all for a general 'data' file !
Is there an algorithm that uses bit fields to compress raw data ?