Summary
If you can use one of the simpler data storage methods described in this chapter, by all means do so. Relational databases are not the best solution to every problem.
If your program needs to store a list of values that will never change, you can compile the data into the source code.
If your program needs to save and restore a limited number of simple values, consider using the Registry. This solution works well for user configuration settings as long as each computer has only one user. If users share computers or move from one computer to another, you need to store these settings in a more central location. The Registry is also less useful for information you want all users to share. For instance, if you want your program to display ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access