Show: Delphi C++
Display Preferences

System.Zip.TZipFile.Read

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure Read(FileName: string; out Bytes: TBytes); overload;
procedure Read(Index: Integer; out Bytes: TBytes); overload;
procedure Read(FileName: string; out Stream: TStream; out LocalHeader: TZipHeader); overload;
procedure Read(Index: Integer; out Stream: TStream; out LocalHeader: TZipHeader); overload;

C++

void __fastcall Read(System::UnicodeString FileName, /* out */ System::DynamicArray<System::Byte> &Bytes)/* overload */;
void __fastcall Read(int Index, /* out */ System::DynamicArray<System::Byte> &Bytes)/* overload */;
void __fastcall Read(System::UnicodeString FileName, /* out */ System::Classes::TStream* &Stream, /* out */ TZipHeader &LocalHeader)/* overload */;
void __fastcall Read(int Index, /* out */ System::Classes::TStream* &Stream, /* out */ TZipHeader &LocalHeader)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Zip.pas
System.Zip.hpp
System.Zip TZipFile

Description

Reads a file from a .zip archive.

There are four overloads of this procedure, depending on the file representation and the output mode.

  • FileName indicates the name of the file in the .zip archive.
  • Bytes represents the output bytes (used by the first two overloads).
  • Index is the index of the file in this .zip archive.
  • Stream is the output stream (used by the last two overloads).
  • LocalHeader is the local file header.

The overload procedures that take an integer as a parameter are useful when the .zip archive contains duplicate file names.

See Also

Personal tools
Previous Versions
Translations