Hi mate,
I am doing a mini program in java that let us look up word as a dictionary.
I tended to use database to store words and their meanings, but my teacher suggested me using file (or xml).
I chose using file (write a vector to file).
Can u tell me how to read my file if its size is large, and how to organize this file that best for searching!
Thanks for any help and idea!
.:n'tQ-boy:.
0
Light Poster
Recommended Answers
Jump to PostIts unlikely you'll really need to worry about file size when you're dealig with a small dictionary, as you can get about 250 printed pages in a single MB of text, so a small dictionary shouldn't be a huge problem. That being said, if you really want it to load …
Jump to PostIf you're updating the dictionary through the program, when a user inserts new words, you can have the program re-sort the list and output the whole file again, or what might be easier is using a
All 5 Replies
joehms22
18
Junior Poster
.:n'tQ-boy:.
0
Light Poster
joehms22
18
Junior Poster
.:n'tQ-boy:.
0
Light Poster
joehms22
18
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.