# \[SectionsToSave\] how to insert it inside Config with C++?

**URL:** <https://forums.unrealengine.com/t/sectionstosave-how-to-insert-it-inside-config-with-c/2360612>\
**Category:** Programming & Scripting\
**Tags:** ini, default, unreal-engine, config, editor, CPP, question\
**Created:** [February 26, 2025, 7:06pm UTC](https://forums.unrealengine.com/t/sectionstosave-how-to-insert-it-inside-config-with-c/2360612 "2025-02-26T19:06:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Engelard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/engelard/32/903560_2.png) [@Engelard](https://forums.unrealengine.com/u/Engelard)\
**Post date:** [February 26, 2025, 7:06pm UTC](https://forums.unrealengine.com/t/sectionstosave-how-to-insert-it-inside-config-with-c/2360612/1 "2025-02-26T19:06:50Z")

</div>

My goal is simple here, I need to read/save few of my values in one of these:

 ![explorer_IChFEqWadc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/b/54b96bf8df5061e901d3668455db4a1d24910934.png)

I am developing the plugin, in order it to work, user’s Project must have `[SectionsToSave]` specified in one of the `Project\Config\DefaultSomeConfig.ini` file, so my plugin would be able to save my values inside .inis at `Project\Saved\Config\WindowsEditor\SomeConfig.ini`(_screenshot above_)

By far, the only way I know - is primitively insert it by hand, manually in that .ini file, like so:

```auto
[SectionsToSave]
+Section=MySection1
+Section=SomeAnotherSection

```

It works. But how do I do it automatically? There is should already exist some proper functions to it, and it is just me - fail to find it.

And I definitely won’t _read/write_ to that file directly to place that stuff, that is to much work and risk to mess things there. People might already have such `[SectionsToSave]` with multiple existing `+Keys` in there specified.

What is correct way to do it?
