Read Method (fileName)

DotNetZip

Ionic Zip Library v1.9.1.6 Read Method (fileName)
ReferenceIonic.ZipZipFileRead(String)
Reads a zip file archive and returns the instance.
Declaration Syntax
C# Visual Basic Visual C++
public static ZipFile Read(
	string fileName
)
Public Shared Function Read ( _
	fileName As String _
) As ZipFile
public:
static ZipFile^ Read(
	String^ fileName
)
Parameters
fileName (String)
The name of the zip archive to open. This can be a fully-qualified or relative pathname.
Return Value
The instance read from the zip archive.
Remarks

The stream is read using the default System.Text.Encoding, which is the IBM437 codepage.

Exceptions
Exception Condition
Exception Thrown if the ZipFile cannot be read. The implementation of this method relies on System.IO.File.OpenRead, which can throw a variety of exceptions, including specific exceptions if a file is not found, an unauthorized access exception, exceptions for poorly formatted filenames, and so on.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)