Re: De-compress a file from UNIX
- From: "Jani Järvinen [MVP]" <janij@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Jul 2005 15:21:42 +0300
Marc,
> I have a problem in that I need to de-compress a file that was
> compressed using the UNIX compress command.
> The resulting filename is helloworld.xml.Z.
> I have looked at SharpZipLib, but haven't been able to make it work.
I'm not aware exactly how "Z" files are built, but most probably they are a
variant of the "zip"-family (LZW) of compression algorithms. So it might be
that they are like Zip files, but just with a different set of headers.
Since the "Z" format is used in Unix quite a lot, probably you could find
documentation of the file format somewhere, and even build your own
decompressor.
However, if you know in advance that you have access to WinZip on the host,
the you could easily command WinZip to decompress the file. WinZip has
published a free command-line add-on to the graphical WinZip utility, which
could prove helpful.
Another option is to take look at the new System.IO.Compression namespace in
..NET 2.0.
Hope this helps.
--
Regards,
Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@xxxxxxxxxxxxxxxxxxxxxx
http://www.saunalahti.fi/janij/
.
- References:
- De-compress a file from UNIX
- From: Marc Jennings
- De-compress a file from UNIX
- Prev by Date: Re: EMAIL on Win98
- Next by Date: Re: Creting a table as in MS-WORD
- Previous by thread: De-compress a file from UNIX
- Next by thread: Re: De-compress a file from UNIX
- Index(es):
Relevant Pages
|
|