[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Create a new archive
Source position: libtar.pp line 196
public constructor TTarWriter.Create( |
TargetStream: TStream |
); overload; |
TargetFilename: string; |
Mode: Integer = fmCreate |
); overload; |
TargetStream |
|
Stream to write archive to. |
TargetFilename |
|
Filename to write archive to. |
Mode |
|
Mode to open target file with. File must be writable |
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.
In case TargetFileName cannot be opened, an exception will be raised.
|
Close archive and clean up TTarWriter |