![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java JavaScript Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Uncompress a Gzip File to a Specific Output FileSee more Gzip ExamplesThis example demonstrates how to use the The method reads the compressed input file and writes the decompressed contents to the output path provided. The output filename is explicitly specified by your application and does not depend on the filename embedded within the Gzip file. This provides full control over where and how the decompressed file is created.
integer li_rc integer li_Success oleobject loo_Gzip string ls_GzPath string ls_OutPath li_Success = 0 // This example demonstrates how to uncompress a Gzip (.gz) file // and write the uncompressed output to a specified file. loo_Gzip = create oleobject li_rc = loo_Gzip.ConnectToNewObject("Chilkat.Gzip") if li_rc < 0 then destroy loo_Gzip MessageBox("Error","Connecting to COM object failed") return end if // The input Gzip file and output file: ls_GzPath = "example.txt.gz" ls_OutPath = "output.txt" // Uncompress the file: li_Success = loo_Gzip.UncompressFile(ls_GzPath,ls_OutPath) if li_Success = 0 then Write-Debug loo_Gzip.LastErrorText destroy loo_Gzip return end if Write-Debug "Gzip file successfully uncompressed." Write-Debug "Output file: " + ls_OutPath destroy loo_Gzip |
||||
© 2000-2026 Chilkat Software, Inc. All Rights Reserved.