谢谢大家,搞定了.就是用vclzip
代码共享:
procedure TForm1.BitBtn1Click(Sender: TObject);
var
AStream: TStream;
begin
VCLUnZip1.ZipName := 'bb3.zip';
AStream := TMemoryStream.Create;
try
VCLUnZip1.UnZipToStream(AStream, '2.txt');
AStream.Position := 0;
Memo1.lines.LoadFromStream(AStream);
//////////////////////////////////////////////////////
AStream.Position := 1;
ListBox1.Items.LoadFromStream(AStream);
finally
AStream.Free;
end;
end;