Skip to content

TTarArchive.Create

Create a new instance of the archive.

Declaration

Source position: libtar.pp line 185

public 
constructor Create(Stream: TStream);  overload; overload;

constructor Create(const Filename: AnsiString; 
                  FileMode: Word=fmOpenRead or fmShareDenyWrite)
                  ;  overload; overload;

Description

Create can be used to create a new instance of TTarArchive using either a StreamTStream descendent or using a name of a file to open: FileName. In case of the filename, an open mode can be specified.

Errors

In case a filename is specified and the file cannot be opened, an exception will occur.

See also

Name Description
FindNext Find next archive entry.