Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use registry or a flat file to save a program's state?

We have a lot of products that are saving their "states" on the registry.

What is the best practice on saving program states? What are the advantages/disadvantages of saving program states as a registry entry or saving program states to a flat file such as XML?

Thanks!

like image 529
Ian Avatar asked Nov 02 '25 09:11

Ian


1 Answers

The obvious awswer would be that storing those states in a normal file, makes it easier for users to backup/restore the state manually.

like image 68
Frank Avatar answered Nov 04 '25 18:11

Frank



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!