Skip to content

TTarWriter.Create

Create a new archive.

Declaration

Source position: libtar.pp line 218

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

constructor Create(const TargetFilename: AnsiString; 
                  Mode: Integer=fmCreate);  overload; overload;

Description

Create creates a new TTarWriter instance. This will start a new .tar archive. The archive will be written to the TargetStream stream or to a file with name TargetFileName, which will be opened with filemode Mode.

Errors

In case TargetFileName cannot be opened, an exception will be raised.

See also

Name Description
TTarWriter.Destroy Close archive and clean up TTarWriter.