Using iostream to create ZIP archive

Hi, I'm trying to use boost to create a "zip" file containing more than one file. To my understanding I should use boost::iosteams to do this. In the boost documentation I there is only an example on how to unzip a file ..... http://www.boost.org/doc/libs/1_37_0/libs/iostreams/doc/classes/zlib.html#ex... ... but I dont understand how I could do the opposite (create a zip-archive) Especially how to do the naming of the files inside the archive. Does anyone have an example on howto do create a zip-archive containing a couple of text files? Thanx /Peter/ -- View this message in context: http://www.nabble.com/Using-iostream-to-create-ZIP-archive-tp21461391p214613... Sent from the Boost - Users mailing list archive at Nabble.com.

Peter Json wrote:
Hi,
I'm trying to use boost to create a "zip" file containing more than one file.
To my understanding I should use boost::iosteams to do this.
In the boost documentation I there is only an example on how to unzip a file ..... http://www.boost.org/doc/libs/1_37_0/libs/iostreams/doc/classes/zlib.html#ex...
... but I dont understand how I could do the opposite (create a zip-archive) Especially how to do the naming of the files inside the archive.
Does anyone have an example on howto do create a zip-archive containing a couple of text files?
There is a distinction between zlib and zip files. this was asked and answered before. For details see: http://www.nabble.com/iostreams-%2B-unzip-td12725850.html#a12725850
participants (2)
-
eg
-
Peter Json