uses urlmon;

procedure TForm1.Button1Click(Sender: TObject);
var
  url:Pchar;
  LocalFilePath:string;
begin
  LocalFilePath :=ExtractFilePath(application.ExeName)+'ServerList.txt';
  url := 'http://ver.bo.sohu.com/version/serverlist.txt';
  UrlDownloadToFile(nil, PChar(url),
     PChar(LocalFilePath), 0, nil);
  memo1.Lines.LoadFromFile(LocalFilePath);
end;

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-08-28
  • 2021-05-31
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案