(Gast)
n/a Beiträge
|
Re: LoadFromFile
4. Nov 2006, 10:01
Datei herunterladen:
Delphi-Quellcode:
procedure DownloadFile( url: String);
var
fn: TFileName;
fs : TFileStream;
begin
fn := ' C:\temp\filename.txt';
fs := TFileStream.Create(fn, fmCreate);
try
try
IdHTTP1.Get( url, fs);
except
end;
finally
FreeAndNil(fs);
end;
end;
Und dann einfach Memo1.Lines.LoadFromFile('C:\temp\filename.txt');
|
|
Zitat
|