I need to make a program in C++ that does the following:
Program to implement the run fixed length encoder -- After the data is compressed and saved in a file another module will open the file again, decompress it and recover the original data. Also, the program will calculate
the efficiency of the encoder.

Can anyone give me an idea of how to compress and decompress a.txt file using C++ programming?