Results 1 to 2 of 2

Thread: how to find a string in a textfile?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    how to find a string in a textfile?

    I need to insert a specified string after an other specified string.

    const STR1 = "blabla"
    const STR2 = "something"
    const FILENAME = "something.txt"

    how to find STR1 in the FILENAME textfile?
    how to insert STR2 after STR1?

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: how to find a string in a textfile?

    Like this
    filename = Replace(filename,STR1,STR1 & " " & STR2)

Posting Permissions

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



Click Here to Expand Forum to Full Width