![]() ![]() To use the procedures, you need to create an instance of “TZipFile”. ExtractZipFile : Class procedure for extracting all the content of the zip file.įirst, include the unit to the uses clauses : uses.IsValid : Class function for validating the zip file.ZipDirector圜ontents : Class procedure for creating a zipped file from a folder’s contents.ExtractAll : Procedure for extracting all the content of the zip file.Extract : Procedure for extracting one file for the opened zip file.Add : Procedure for adding a file to the opened zip file.The functions (for creating, editing and extracting a ZIP archive’s contents) reside in the class “TZipFile”. Access to the raw stream of a file within the zip archive (for decrypt purposes) using event before decompressing the file.Tracking the progress of zip file tasks (compression, decompression, reading files) with event handler.Access meta informations (name, comment, etc.) of the zip file and it contained files.Compress files and create a new zip file.Extract all or specific files from a zip file.This unit provides many ready-to-use features, you can use it to : Unlike other compression librairies and components available for Delphi, this unit is completely written in Object Pascal : it doesn’t require any dependancies or external libraries. In this tutorial, we will show you what are the abilities of this unit and how to use it properly. It is based on the RTL, and it can work slightly with VCL and FMX frameworks on all supported targets. Since version XE2, Delphi is shipped with the built-in unit “System.Zip” for creating, editing and extracting ZIP compressed files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |