How Can I create a dictionary file (dicionary.dat) in MIDP
Hi All,
I need your help.
Let me explain clearly my problem so u can advise me what to do.
In fact, I have a text file of words called (words.txt) and I would like to create a dictionary file (dict.dat)of those words and be able to load that dictionary so that I can read it.
Can you help how I can do that in MIDP. I am using Wireless Toolkit 2.5.
I need hint so I can do that.
Thanks
[428 byte] By [
theotimea] at [2007-11-27 4:12:21]

# 3
Do u think that this code can work.
And I load it in vector
InputStream is = getClass().getResourceAsStream("help.txt");
try
{
StringBuffer sb = new StringBuffer();
int chr, i = 0;
// Read until the end of the stream
while ((chr = is.read()) != -1)
sb.append((char) chr);
return sb.toString();
}
catch (Exception e)
{
System.out.println("Unable to create stream");
}
return null;
}
# 4
> Hi All,
>
> I need your help.
>
> Let me explain clearly my problem so u can advise me
> what to do.
>
> In fact, I have a text file of words called
> (words.txt) and I would like to create a dictionary
> file (dict.dat)of those words and be able to load
> that dictionary so that I can read it.
>
> Can you help how I can do that in MIDP. I am using
> Wireless Toolkit 2.5.
>
> I need hint so I can do that.
>
>
> Thanks
hello theotime,
did you find a way to do that?
I've got a problem similar to your: a list of 3000 wines to filter in a reasonable fast time.
how big is your dictionary?
with a text file encoded in UTF-8 I take about 60 seconds on the emulator, maybe with a binary format the search can be done faster...
before reading your post i've started this thread:
http://forum.java.sun.com/thread.jspa?threadID=5184516
...not very helpfull...right now...
please, let me know!!!
thank-you in advance,
daniele