提取在C#中tar.Z格式文件 [英] Extracting a tar.z file in C#
问题描述
我想提取pssed在tar.Z格式(或.taz)格式与.NET Framework文件COM $ P $。 问题是我无法找到任何库至极支持 LZW < /一>算法(通常,拉链,gzip和bzip2的支持,以及Z是不是,例如在SharpZipLib)。
I would like to extract a file compressed in the tar.z (or .taz) format with the .NET framework. The problem is I cannot find any libraries wich support the LZW algorithm (often, zip, gzip and bzip2 are supported, and Z is not, for example in SharpZipLib).
看来 COM preSS (算法生成.Z COM pressed文件)是很老了,也许这就是为什么它是很难找到一个图书馆支持的原因吧。
It appears that compress (the algorithm producing .z compressed files) is quite old, maybe it's the reason why it's hard to find a library supporting it.
你有没有关于此类COM pressed文件中提取任何想法?
Do you have any idea concerning the extraction of such compressed files?
*的编辑:* 的所以我们有VB code到COM preSS / DECOM preSS LZW文件,但我还没有找到一个C#库做这个工作了。因此,问题仍然是开放的。
* * So we have VB code to compress/decompress LZW files, but I have not found a C# library doing this job yet. So the question remains open.
推荐答案
的COM preSS采用LZW算法,有一个VB.NET实现在这里:
Compress uses the LZW algorithm, there is a VB.NET implementation of it here:
HTTP://www.$c$cproject.com/KB/食谱/ VB_LZW.aspx
这将是很容易将其转换为C#。结合与从SharpZipLib焦油code应该做你所需要的。
It would be fairly easy to convert it to C#. Combining that with the Tar code from SharpZipLib should do what you need.
这篇关于提取在C#中tar.Z格式文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!