This content has been marked as final. Show 1 reply
EdChouaffe wrote:The one that best meets your specific requirements is best.
I have been implementing a GUI app and want to persistently save some values to reuse when the application is restarted.
I would like you to give me some tipps on which mechanism is best to achieve this task.
Have you read the docs for both, and maybe look at a couple examples or tutorials? If not, why not?
Do you understand the fundamental differences between them?
Did you try them both? If not, why not? It's only a few lines of code, and you can hide the implementation behind an interface.
Did you have specific problems with one or the other?
Do you have more specific requirements than "save and reload"? If not, I doubt you'll notice a difference between the two.