I am looking for the best possible way to create a file store. In this file store I will be storing information on contact details etc. I will need to modify the details in the text file. I just wanted to get some opinions of what would be the best way to do this?
Share
It depends on the size of the project.
And it is always nice to use SQLite! It is a simple SQL database library that stores the databases in one single file.
Since you have to use something simple with basic File IO, I would suggest taking one of the simple formats, like XML, JSON, CSV. Or to score better, write your own binary files, using DataOutputStream and DataInputStream.
Your file format could be something like this: