Home All Groups Group Topic Archive Search About

Compressing more than one file into .zip

Author
3 Apr 2006 2:41 PM
Jonathan Rothwell
Can somebody please tell me how to compress more than one file into a .ZIP
file? Any code samples would be appreciated - I am intending to tell my
application to store the contents of one field in one text file, another in
another text file, and so on, and then compress them into a single file. I
need compression and decompression capabilities.

Many thanks.

Author
3 Apr 2006 3:02 PM
Ken Tucker [MVP]
Hi,

         Take a look at the sharp zip library.  It is an open source
project. You will find samples included in the download.

http://www.sharpdevelop.net/OpenSource/SharpZipLib/Default.aspx

Ken
--------------------

Show quoteHide quote
"Jonathan Rothwell" wrote:

> Can somebody please tell me how to compress more than one file into a .ZIP
> file? Any code samples would be appreciated - I am intending to tell my
> application to store the contents of one field in one text file, another in
> another text file, and so on, and then compress them into a single file. I
> need compression and decompression capabilities.
>
> Many thanks.
>
>
>
Author
3 Apr 2006 3:25 PM
William LaMartin
I have used an ICSharp dll in the past to do such.  I can not remember
exactly where I got it, but at the site
http://wiki.sharpdevelop.net/default.aspx you can find information about
it--however I see no place to download anything.  Perhaps a Google search on
ICSharp will produce something.

Show quoteHide quote
"Jonathan Rothwell" <freewindownlo***@ntlworld.com> wrote in message
news:nuaYf.42401$u31.33247@newsfe2-win.ntli.net...
> Can somebody please tell me how to compress more than one file into a .ZIP
> file? Any code samples would be appreciated - I am intending to tell my
> application to store the contents of one field in one text file, another
> in another text file, and so on, and then compress them into a single
> file. I need compression and decompression capabilities.
>
> Many thanks.
>