Read from dictionary

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • josh wood
    New Member
    • Oct 2011
    • 6

    Read from dictionary

    I have a program that looks up words in a dictionary. The dictionary is in the form of a text file with one word per line. I have tried
    Code:
    If TextBox.Text.Contains(Dictionary.ReadLine()) Then 
    MsgBox("This contains a word", MsgBoxStyle.Information, "Info")
    end if
    however it only looks at the first line of the dictionary, not every line. Any ideas on how to make it read each line individually. By the way, the text has no spaces and no punctuation.

    (Dictionary is a streamreader)
Working...