用Tidhttp下载文件

procedure TForm1.btn1Click(Sender: TObject);
var
stm:TFileStream;
begin
stm:
=TFileStream.Create('c:\test.exe',fmCreate);
http.Get(
'http://www.domain.com/test.exe',stm);
stm.Free;
end;

posted @ 2008-11-26 13:00  Aricc  阅读(978)  评论(0编辑  收藏  举报