There is a site on which the text.txt file is text.txt .

Task: load its contents, for example, in Memo .

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

1 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;