Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: idftp,text aus textdatei vom ftp server in memo1 laden
23. Aug 2006, 19:23
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var Temp: TMemoryStream;
begin
Temp := TMemoryStream.Create;
IDFTP1.Get('EventuellerUnterordner\NameDerDatei.txt',Temp);
Temp.Seek(0, soFromBeginning); // das werd ich nieee wieder vergessen :mrgreen:
Memo1.Lines.LoadFromStream(Temp);
Temp.Free;
end;
So sollte es geht
Gruß
Neutral General
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|
|
Zitat
|