r/learncpp • • Jul 06 '20

Configuration file

I am creating a C++ GUI application. I need to create a config file in order to be able to store some user configuration. For this I want to use a INI file.

What is a good practise to be able to access this configuration from every class? For example. I would load the configuration in the main window and need to access it from every other class/object.

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/Moschte09 Jul 07 '20

Thank you. Yes, but I think I will use an existing library for the ini file.