I am new to .NET. Is it possible to create a tar.gz using a .NET environment? If yes, how?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I guess you can also use http://sevenziplib.codeplex.com/
回答2:
Have a look at SharpZipLib
http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx
回答3:
Yes, it is possible.
- Create a tar archive using a suitable library, say http://code.google.com/p/tar-cs/.
- Then compress the tar using GZipStream class.
Of course, you should be familiar with streams.