DataFlex
DataFlex
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 DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
Handle hoGzip
String sTemp1
Move False To iSuccess
Get Create (RefClass(cComChilkatGzip)) To hoGzip
If (Not(IsComObjectCreated(hoGzip))) Begin
Send CreateComObject of hoGzip
End
Get ComUncompressFile Of hoGzip "qa_data/tar/test.tgz" "qa_output/test.tar" To iSuccess
If (iSuccess <> True) Begin
Get ComLastErrorText Of hoGzip To sTemp1
Showln sTemp1
End
Else Begin
Showln "success."
End
End_Procedure