Discussion:
Using iostream to create ZIP archive
Peter Json
2009-01-14 17:53:41 UTC
Permalink
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#examples

... 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-tp21461391p21461391.html
Sent from the Boost - Users mailing list archive at Nabble.com.
eg
2009-01-14 18:55:09 UTC
Permalink
Post by Peter Json
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#examples
... 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
Continue reading on narkive:
Search results for 'Using iostream to create ZIP archive' (Questions and Answers)
3
replies
C++ Help. Program not working right. Please help.?
started 2010-03-18 17:21:18 UTC
programming & design
Loading...