Is there a function in VB to search a text file for a specified string?

I've tried to input from the text file into a variable then use InStr to compare the two before looping and testing the next input - but it doesn't work...

If no-one has any ideas I can send this code and see if anyone knows what's wrong with it...

Thanks