Usually when you're posting a question that's just an extension of a previous question, it's better to append your post to the previous conversation, so that we can see what's gone before, and have the complete context. In this case, that was this
here. However now it seems easier to close the old
thread and continue here, so that's what I'm doing...
The main problem is still the same as it was:
therefore, I use "Bill" as both the pattern and the input provided by the user. This makes no sense. You're searching "Bill" to see if it contains the substring "Bill". Yes, it does. But what about the file you were planning on reading? You created a reader:
and later you close it:
In between, it seems you need to actually
do something with this reader, and use it to form the userInput that you search with the Matcher.
[ December 11, 2002: Message edited by: Jim Yingst ]