Home>

There is a site where the file is locatedtext.txt...

Task: load its contents, for example, inMemo...

I wanted to do this -download this file and then open it, but I think there is an easier way.

delfidevelop.ru /publ /35-1-0-217

IntegralAL2021-03-16 06:00:36
  • Answer # 1
    var
    sl: TstringList;
    begin
    sl: TstringList.create;
    sl.text:= idHTTP1.Get ('http: /BLABLABLA.COM/text.txt');
    Memo1.text:= sl.Text;
    sl.free;
    end;
    

    another option without using TStringList

    begin
    Memo1.text:= idHTTP1.Get ('http: /BLABLABLA.COM/text.txt');
    end;