Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to save some simple data?

Tags:

delphi

pascal

I'm wondering where's the best place to save some simple insensitive data? Like a few URLs and some settings.

Please advise.

like image 744
emurad Avatar asked Feb 10 '26 22:02

emurad


1 Answers

If this is a per-user file, you should save it in the current user's profile. For example, on my Windows 7 system, you should use

C:\Users\Andreas Rejbrand\AppData\Local\Your Company Name\Your Product Name\Version

such as

C:\Users\Andreas Rejbrand\AppData\Local\Rejbrand\AlgoSim\2.0

To get the C:\Users\Andreas Rejbrand\AppData\Local path, you use the SHGetSpecialFolderPath function.

like image 192
Andreas Rejbrand Avatar answered Feb 13 '26 16:02

Andreas Rejbrand



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!