Compress and decompress with c#?

  • Thread starter Thread starter Rajoo Sharma
  • Start date Start date
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).
 
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!
 
Back
Top