How to concat two or more gzip files/streams
问题 I want to concat two or more gzip streams without recompressing them. I mean I have A compressed to A.gz and B to B.gz, I want to compress them to single gzip (A+B).gz without compressing once again, using C or C++. Several notes: Even you can just concat two files and gunzip would know how to deal with them, most of programs would not be able to deal with two chunks. I had seen once an example of code that does this just by decompression of the files and then manipulating original and this