本文整理自网络,侵删。
介绍
本文章介绍了Delphi XE5 android 使用System.Zip单元释放资源文件,在写代码之前,需要先引用
System.Zip.pas
然后编写如下的代码
var
zip: TZipFile;
begin
//首先创建对象
zip := TZipFile.Create;
//打开需要解压缩的Zip文件
zip.Open(TPath.GetDocumentsPath + PathDelim +'txt.zip', TZipMode.zmRead);
//解压缩所有的文件到指定的目录
zip.ExtractAll(TPath.GetDocumentsPath + PathDelim);
//释放资源
FreeAndNil(zip);
end
相关阅读 >>
Delphi system.sysutils.tmarshaller 与 system.tmarshal
Delphi 系统对话框(如浏览目录)被隐藏到主窗体后面造成程序无法操作的临时处理方式
Delphi xe, xe10, 创建 activeform 和 activex 工程的方法
Delphi android ios 获取packagename
更多相关阅读请进入《Delphi》频道 >>