Page 1 of 1

Crossword Helper Program

Posted: 05 Nov 2010 01:07
by phillid
Hiya. I have a text file called corncob.txt which is a massive english dictionary (no definitions of words) that has each word on a different line. What I want is to have a batch file that asks you what word in a crossword puzzle is needed. You would use the '?' wildcard for the letters that you don't know. How do I make a FOR loop sort through the corncob.txt and find all words that match the input for example you enter '?ook' and it would return the words 'book', 'cook', 'took', 'look' etc.
I still can't get my head around the batch's FOR loops :(

Please help me
Thanks a whole lot!

phillid

Re: Crossword Helper Program

Posted: 05 Nov 2010 07:27
by !k
findstr /be /r /c:".ook" corncob.txt

. means any symbol