介绍
本文章介绍了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
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.039414167404175 seconds