Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Zeile eines Wortes in einer Textdatei bestimmen (https://www.delphipraxis.net/90697-zeile-eines-wortes-einer-textdatei-bestimmen.html)

Yoda2003 22. Apr 2007 12:11


Zeile eines Wortes in einer Textdatei bestimmen
 
Hallo,

ich möchte eine Textdatei (z.B. C:\test.txt) nach dem Wort "Hund" durchsuchen.
Dabei soll "bloß" die Zeile in der das Wort drin vorkommt ermittelt werden.

Das Wort Hund kommt in der Textdatei max. 1 mal vor

Wie mache ich das?

Blackheart 22. Apr 2007 12:18

Re: Zeile eines Wortes in einer Textdatei bestimmen
 
StringList, Pos


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:29 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz