[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pbmserv-dev] using the Scramble.word dictionary



Hi Douglas,

Have a look at lingo.cpp, in particular:

bool CLingo::LoadWords(void)

This function loads the Scramble dictionary as a simple text file into an array of strings in memory. Easy!

Cameron


At 11:55 PM 5/19/2006, Douglas Zander wrote:
Thanks for your efforts Ted Rathkopf and Bob Lefleur. I guess there are two
different files. One is a compressed binary file format in DAWG format and the
other is a text file of the words? I wish to simply check if a word is in the
dictionary. Now that I have Scramble6.words in the pbmserv/etc directory I
guess I'll just use that. I'm still not sure how I access that, but if it is a
text file sorted alphabetically then I could just write a simple binary search
to search the list? Thanks for your help so far.



___


Douglas Zander  Milwaukee, Wisconsin, USA
As of September 13th, 2005 I became a Great Uncle for the first time.
As of November 2nd, 2005 I became a Great Uncle for the second time!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


To unsubscribe, send a message to esquire@gamerz.net with unsubscribe pbmserv-dev@gamerz.net as the BODY of the message. The SUBJECT is ignored.