CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    14

    URGENT! Searching text file for specific text

    Im trying to search my text file for specific text. I have an inputbox requesting the information from a user, and from that I want it to search my text file for the name. Example Tom Bernard T141 905-685-5655 6.0

    Say if i want to search for the first name, Tom
    I want to search from 0, to the firstspace
    and return the whole text line that it comes along with

    So if Tom is found display the line in which Tom is found

    IF someone can help it would be appreciated. Im really stuck!

  2. #2
    Join Date
    Dec 2004
    Posts
    8

    Re: URGENT! Searching text file for specific text

    Quote Originally Posted by bboy_romeo
    Say if i want to search for the first name, Tom
    I want to search from 0, to the firstspace
    and return the whole text line that it comes along with
    you should use RegEx class

  3. #3
    Join Date
    Oct 2004
    Posts
    14

    Re: URGENT! Searching text file for specific text

    what is RegEx class?
    and how do i use it?? to find what i need

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

Featured