![]() |
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
(DataFlex) Check if a File is in Gzip FormatSee more Gzip ExamplesThis example demonstrates how to use the The method inspects the contents of the specified file and returns If the method fails (for example, if the file does not exist or cannot be accessed), the
Use ChilkatAx-win32.pkg Procedure Test Handle hoGzip String sFilePath Boolean iIsGzip // This example demonstrates how to determine if a file is in Gzip format. Get Create (RefClass(cComChilkatGzip)) To hoGzip If (Not(IsComObjectCreated(hoGzip))) Begin Send CreateComObject of hoGzip End // The file to examine: Move "test.gz" To sFilePath // Check if the file is a valid Gzip file: Get ComExamineFile Of hoGzip sFilePath To iIsGzip If (iIsGzip = True) Begin Showln "The file is a valid Gzip file." End Else Begin Showln "The file isnot a Gzip file." End End_Procedure |
||||
© 2000-2026 Chilkat Software, Inc. All Rights Reserved.