Look in the System.IO namespace.
Especially System.IO.File and System.IO.Directory.
These are used to inspect the file system.
nick.crane
Nearly a Posting Virtuoso
1,230 posts since Feb 2010
Reputation Points: 375
Solved Threads: 187
Looking at the DetNetZip Library Examples you probably want to do something like this.
// open zip file given in OpenFileDialog
using (ZipFile zip = ZipFile.Read(op.FileName))
{
foreach (ZipEntry e in zip)
{
MemoryStream outputStream = new MemoryStream();
e.Extract(outputStream); // write file contents to memory stream
outputStream.Position = 0; // reset stream pointer to start
// do what you want with the stream data.
}
}
[Edit] Thanks to both sadhawan and gusano79 for introducing me to these Zip libraries.
nick.crane
Nearly a Posting Virtuoso
1,230 posts since Feb 2010
Reputation Points: 375
Solved Threads: 187