Application settings

aberba via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 7 14:58:52 PDT 2017


On Friday, 7 July 2017 at 19:40:35 UTC, FoxyBrown wrote:
> What's the "best" way to do this? I want something I can simply 
> load at startup in a convenient and easy way then save when 
> necessary(possibly be efficient at it, but probably doesn't 
> matter).
>
> Simply json an array and save and load it, or is there a better 
> way?
>
> Ideally, I'd like to store the settings as part of the binary 
> to keep everything together but that poses a few issues I think.

Setting are not kept in binary (usually). Normally the installer 
would take care of creating a folder somewhere with a 
JSON/XML/SQlite file which stores settings.


More information about the Digitalmars-d-learn mailing list