Autor Beitrag
Tchiboo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35

Win XP Home, Mac OS

BeitragVerfasst: Sa 11.02.06 18:09 
Hallo... (zum zweiten... hehe)

Ist es möglich das ich aus einer Text Datei zum Beispiel die 3. Zeile auslese und die dann beispielsweise in einem Edit-Feld ausgebe?

Hab das hier nicht gefunden wie das geht und bei google auch nicht!

Danke
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 11.02.06 18:22 
Tchiboo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35

Win XP Home, Mac OS

BeitragVerfasst: Sa 11.02.06 18:31 
Dankeschön... habs net gefunden :( oder bestimtm nciht richtig gesucht...

Danke Blackheart666
Hux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 171



BeitragVerfasst: Mo 13.02.06 13:12 
Könntesch ja die Textdatei in ne Memo reinladen und dann mit dem da auslesen:
ausblenden Delphi-Quelltext
1:
Edit1.Text:=Memo1.Lines[3]					



Hab kein Delphi da..., wenn's nicht funkt, frag mich nochmal
Hux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 171



BeitragVerfasst: Mo 13.02.06 13:14 
achja, falls net funkt, füg noch n .text darein, also:
ausblenden Delphi-Quelltext
1:
Edit1.Text:=Memo1.Lines[3].Text					


Glaub des müsste dann funken!
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 13.02.06 13:31 
Du kannst auch TStringlist verwenden:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var list:TStringlist;

list:=Stringlist.create;
list.loadfromfile(dateipfad);
edit1.text:=list.strings[Zeilennummer];

//zum Schluss
list.free;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot