check inside a text file for existing text ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Neo7
    No longer a forum member
    • Jul 2010
    • 85

    check inside a text file for existing text ?

    I have a text file that contains some text.

    I tried this code to write something into it :

    Code:
    TextFile.WriteFromString("C:\\1.txt", "\r\nThis is some text.", true);
    But I want it before writing, check the text file if (This is some text.) is already exists.

    Is that possible ?
  • Mick
    No longer a forum member
    • Feb 2012
    • 173

    #2
    text file read to string then string find.

    Comment

    • Neo7
      No longer a forum member
      • Jul 2010
      • 85

      #3
      Tnx, it was easy

      Comment

      Working...
      X