Delphi ActiveX
Delphi ActiveX
UnGzip .tgz to get a .tar
See more Tar Archive Examples
A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.Chilkat Delphi ActiveX Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
success: Integer;
gzip: TChilkatGzip;
begin
success := 0;
gzip := TChilkatGzip.Create(Self);
success := gzip.UncompressFile('qa_data/tar/test.tgz','qa_output/test.tar');
if (success <> 1) then
begin
Memo1.Lines.Add(gzip.LastErrorText);
end
else
begin
Memo1.Lines.Add('success.');
end;
end;