What's the best way to implement the file format of a dictionary application?
I want to write a dictionary application on the android platform. Now I have some basic idea of how to organize the dictionary en开发者_如何学JAVAtries in a file. I want to hear from you guys opinion on what's the best way to organize the entries in a file in order to get best performance.
Thanks.
Don't reinvent the wheel, there are already perfect systems for storing, searching and retrieving data. They are called databases.
It looks like the nice in process database SQLite exists for Android.
Use a Trie =)
精彩评论