Compress and decompress with c#?

A

Alberto Poblacion

Rajoo Sharma said:
Hi, Does someone know about a good easy to use and implement library which
is very good at compressing text files?

Why not use the library that comes with the .Net Framework (2.0 and
above)?

You can use the DeflateStream or GZipStream classes to compress and
decompress information. Noting stops you from connecting either with a
FileStream to compress a file. Both Deflate and GZip will do a fine job when
compressing text. And they are as simple to implement as you can get when
programming under .Net, since you don't need to deploy any library, just the
Framework (which you would need anyway to run your program, even if you were
using a different compression library).
 
R

Rajoo Sharma

Alberto said:
Why not use the library that comes with the .Net Framework (2.0 and
above)?

You can use the DeflateStream or GZipStream classes to compress and
decompress information. Noting stops you from connecting either with a
FileStream to compress a file. Both Deflate and GZip will do a fine job
when compressing text. And they are as simple to implement as you can
get when programming under .Net, since you don't need to deploy any
library, just the Framework (which you would need anyway to run your
program, even if you were using a different compression library).
Actually I didnt know about it. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top