I want to develop a j2me dictionary application. Can I use a text file to store dictionary words instead of using rms?
How can I retrieve words according to user's need?
I want to develop a j2me dictionary application. Can I use a text file to store dictionary words instead of using rms?
How can I retrieve words according to user's need?
You could use a text file however I dont think that solution would scale well and would be slow to search. Best case scenario for a text file solution you would have it alphabetically sorted and then you would have to search for the word you're trying to look up. Sounds painfully slow. RMS sounds like the better solution
You can store the data in a file yes. How to read the content of files in J2ME has been asked and answered before, please see:
From a performance perspective you would probably be better off using the RMS system, opening and parsing the files every time you want a word would probably not be very efficient.
Using the files as the means of getting the information onto the device however seems reasonable (as opposed to downloading that data after the midlet has been installed).