Re: Reading in a Dictionary File




John W. Kennedy wrote:
Fahd Shariff wrote:
Reading in a dictionary file is the same as reading in any other file.
You use a BufferedReader and store the contents of the dictionary in
some kind of data structure, for example.

Not necessarily a BufferedReader. An DataInputStream or a
RandomAccessFile might be necessary. There's just no way of knowing
without more information.


What kind of info do you need? One of my concerns is how long it would
take to read in a 500,000 word dictionary. I have read a little online
about this and it does not seem to be as simple as it sounds, if one
considers efficiency. My program would take a word(s) as input,
calculate the permutations of the letters, and then try to match them
to actual words in the dictionary.

Chuck

.



Relevant Pages

  • Re: Reading in a Dictionary File
    ... Fahd Shariff wrote: ... You use a BufferedReader and store the contents of the dictionary in ... some kind of data structure, ... Not necessarily a BufferedReader. ...
    (comp.lang.java.help)
  • Re: Reading in a Dictionary File
    ... some kind of data structure, ... Not necessarily a BufferedReader. ... A few plausible file formats for a dictionary: ...
    (comp.lang.java.help)