java file writting
I have a todo list project going right now. And I'm stuck there where I have to store info.
What is the best way to store(place, todo, time)? In php I would store info in a txt file or database. I want to run it as a app on my pc not on the web, so a external database out of the question.
Are there any built in database software that I can use?Or should I save info into a txt file?
It is your choice where you want to store data... You can store both in file or in database....
I don't know of any one-size-fits-all solution. How you store your information will vary and depend greatly on your requirements. If just a few bits of linear information, then a text file is fine, if a huge amount of complex information, then perhaps a database with all sorts of other possible solutions in between.
As for bundled databases, I think that Java either comes with Apache Derby (called Java DB by Sun/Oracle) or that Derby can be downloaded from Java sites, but here too there are other worthwhile solutions including MySQL, SQLite, H2, ...