Create tar.gz using .NET

拈花ヽ惹草 提交于 2019-12-01 20:11:46

问题


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.

  1. Create a tar archive using a suitable library, say http://code.google.com/p/tar-cs/.
  2. Then compress the tar using GZipStream class.

Of course, you should be familiar with streams.



来源:https://stackoverflow.com/questions/3212118/create-tar-gz-using-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!