Hi, I'm developing a program and i need my program to remember settings people have done, how can this be done? :)
What i mean is, if i let the user set the background color to green, close the program and it'll remember "Aha green background"
Printable View
Hi, I'm developing a program and i need my program to remember settings people have done, how can this be done? :)
What i mean is, if i let the user set the background color to green, close the program and it'll remember "Aha green background"
There are several ways: before the app closes, store/update the settings to a database, registry or file, like an INI file. When the app opens, retrieve the settings and apply them as needed. Here is an example of reading/writing INI files within the FAQ's section of the forum.
Outputting settings to a file is the most common way, search reading and writing of text files.
-EDIT-
5 seconds too late, LaVolpe gave better info than me!
Thank you very much, you guys!