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

searching in .txt file

Discussion in 'C' started by doodoodee, Apr 9, 2009.

  1. doodoodee

    doodoodee New Member

    Joined:
    Apr 9, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have a problem regarding finding a word in a text file and printing the sentence out.. here is how the text file goes..

    ---------------------------------------------------------------------------------------------------wow.txt

    The sky is blue. Leaves are drop from the sky. Waves is form in the sea.
    ---------------------------------------------------------------------------------------------------

    how am i suppose to do to actually search for a word like "is" then my outcome will be
    "The sky is blue. " and also "Waves is form in the sea."
     

Share This Page