Peted wrote:
> Hello,
>
> Using VS2008 c#, 3.5
>
> can anyone advise me regarding interacting c# and zip files.
>
> Im being given a zip file, with im told a definte no changing
> directory structre of which i need to extract or navigate to a specfic
> file that may be of different name in each zip file but should be in
> the same directory structure each time.
>
> To emilniate the need to manually unzip the contents, i want to use a
> directory picker (or something) to be able to select the zip file and
> directly/programatically navigate the directory structure of the zip
> file, select the file in question and import it into my application.
> The file is a text file.
>
> Can i do this in c# dot net, without a 3rd party zip library. From
> what i have found c# could extract a zip file contents, but not if the
> zip file has directories ??
>
> Could anyone apply thier amazing intellect to this conundrum, and
> illuminate a poor wandering soul lost in the world of dotnet.
>
>
> any advice appreciated
>
> thanks
>
> Peter
>
The current version of the framework has no support for the zip file
format. It can compress and decompress the data streams, but not read
the file structure that contains the data streams.
You either have to write the code yourself to read the file structure,
or use third party code.
--
Göran Andersson
_____
http://www.guffa.com