Copying two files in a third one...
-
[quote author="croussou" date="1329984584"]It was mostly a general question, if there is any way for an application to provide files in an archive :)
Not about concatenation itself...just the zipping process.[/quote]
Grmbl!
Then please, why do you only say that now? Why do you send us down a different road, trying to answer the question you asked instead of the question you have? Please spend a bit more time formulating your actual question in the future; describe what you want to achieve, not how you think you might achieve it. That will make us spend our time more efficiently.Anyway, working with ZIP files is a "FAQ":http://developer.qt.nokia.com/faq/answer/how_to_compress_data_with_qt on this site. There is "plenty":http://developer.qt.nokia.com/search?search=zip to be found on this site on this topic.
-
Again, you have to use the format API. Or reimplement everything yourself which is not really applicable.
Luckily most archive formats have an open API so they can easily be integrated.
-
Relax, we are all flawed by design - that is what life is for, polishing those flaws ;)
Take a look here:
http://www.7-zip.org/sdk.htmlbq. LZMA SDK includes:
C++ source code for .7z compression and decompression (reduced version)This is no longer Qt territory, but you can easily integrate the 7zip library and use it in your Qt project.
-
You cannot expect others to write all your code for you, you have to learn it for yourself, and it does take time. Even if your get all the code snippets from others, without the proper skills you will not be able to put them together in a working program. Rome wasn't built overnight you know ;)
-
A final word of advice, don't think, not even for a moment, that you will be able to avoid the hard work of digging through the documentation, all the examples you see cover at best the very basics, learning to find what you need in the DOC is MANDATORY if you really intend to become a programmer.
Good luck.