This topic demonstrates how to list the contents of a gzipped file using the static GetGZipContents method of the QuickGZip class.
Note: QuickGZip is not currently available in Xceed's Compact Framework products.
GetGZipContents method
There is only one version of the GetGZipContents method. The method returns a QuickGZipItem object, which you can process as you wish.
Basic steps
To list the contents of a gzipped file, the following steps must be performed:
-
Declare a QuickGZipItem object that will contain the result of the call to the GetGZipContents method.
-
Process the returned QuickGZipItem object.
Demonstration
In the following example, we specify the gzipped file whose contents will be listed.
VB.NET | Copy Code |
---|---|
|
C# | Copy Code |
---|---|
using Xceed.GZip;
|
Things you should consider
The main questions you should ask yourself when listing the contents of a gzipped file are:
-
Do you want to do more complex GZip operations? Use the FileSystem-based classes defined within the Xceed.GZip namespace.