Sign in Join
FPDoc Onlineexperiment

TTarWriter.Create constructor

Member of TTarWriterpublicIn unit LibTar

Create a new archive.

Declaration

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

Arguments

TargetStream

Stream to write archive to.

TargetFilename

Filename to write archive to.

Mode

Mode to open target file with. File must be writable.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.