I would like to compress a file and have C++ hold it such as a folder, images, and videos. Is this possible? If so, is there any links or tuts that show how to do this, or even a open source code? Basically I want to contain my folders, etc and then when ever I want to get a hold of my files, I'll have to dump it out with a special password access... I hope it is not to difficult to do... but i'll still try.
I remember downloading a file for something... and it opened as a Console, and extracted everything in my C:\, I do not know what language the person created it in, but after that I wanted to have my own console version do this with all my files. I downloaded 7zip, it seems like almost a .rar type of software.
I have the software 7-zip, but where is the Source code?
It CAN be done in C++. Use something like boost::filesystem to iterate through all folders and files in a file system. Then use your own algorithm to compress them into a binary file. Some algorithms take consecutive zeros and replace them with a shorter symbol (that's an easy algorithm). In the compressed format, you also need to define the folder structure, this will let you restore the same format later.