Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Neo7 is offline No longer a forum member
    Join Date
    Jul 2010
    Posts
    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 ?

  2. #2
    Mick is offline No longer a forum member
    Join Date
    Feb 2012
    Posts
    173
    text file read to string then string find.

  3. #3
    Neo7 is offline No longer a forum member
    Join Date
    Jul 2010
    Posts
    85
    Tnx, it was easy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts