Autor Beitrag
Hochhaus
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 662
Erhaltene Danke: 8

Windows 7
Delphi XE2
BeitragVerfasst: Mi 09.10.13 17:31 
Hallo allerseits !

bisher lade ich die Daten mit dem Befehl

--> RichEdit1.Lines.LoadFromFile(S);

in ein RichEdit. Nun meine Frage: Gibt es eine schnellere Alternative dazu ?

Vielen Dank für jede Antwort !


Hochhaus
Mathematiker
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2622
Erhaltene Danke: 1447

Win 7, 8.1, 10
Delphi 5, 7, 10.1
BeitragVerfasst: Mi 09.10.13 17:48 

_________________
Töten im Krieg ist nach meiner Auffassung um nichts besser als gewöhnlicher Mord. Albert Einstein

Für diesen Beitrag haben gedankt: Hochhaus
Blup
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 173
Erhaltene Danke: 43



BeitragVerfasst: Mi 09.10.13 17:48 
LoadFromStream();

Wenn der Stream z.B. ein TMemoryStream ist und bereits im Speicher bereitliegt.
Aber ich vermute das Lesen der Datei von der Festplatte ist nicht der wesentliche Zeitfaktor.

Für diesen Beitrag haben gedankt: Hochhaus