1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to get perticular line from notepad or any text document

Discussion in 'Win32' started by vidhya, Jun 18, 2007.

  1. vidhya

    vidhya New Member

    Joined:
    May 17, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    hi

    i want to know how to retrieve only the even numbered line from any text document it may be notepad or some other document.and i want to campare the retrieved line with specific string.please help me out to do this.

    regards
    vidhya
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
    Use GetWindowText to get complete text and then parse the odd one out.
     
  3. vidhya

    vidhya New Member

    Joined:
    May 17, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    i dont want to read text from the title bar ,i want to read one line of text from text document.is it possible to do.
     
  4. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
    You provide the handle to the textbox and not the main window.
     

Share This Page