# Key value pairs

**URL:** https://www.finalbuilder.com/forums/t/key-value-pairs/2044
**Category:** Discussion
**Created:** [October 31, 2012, 11:40am UTC](https://www.finalbuilder.com/forums/t/key-value-pairs/2044 "2012-10-31T11:40:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 31, 2012, 11:40am UTC](https://www.finalbuilder.com/forums/t/key-value-pairs/2044/1 "2012-10-31T11:40:48Z")

</div>

Hello,

We are using finalbuilder to create deployments for several targets (development, test, production). We have a custom configuration for each configuration, and we solve that by using a custom ini file with the same keys for each configuration.

However, I have now come to the point where I don't want to update finalbuilder everytime a new setting is added. This is my workflow at the moment:

1) Add customized setting to all configurations ini files

2) Update finalbuilder to read the new ini value

3) Update finalbuilder action list called "Replace web.config" settings wit the new key

&nbsp;

What is the recommended way to read a file with key/value pairs and use the key as value to be replaced, and the value as value to replace it with? Then I only have to update the ini files, not finalbuilder itself.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 1, 2012, 11:22am UTC](https://www.finalbuilder.com/forums/t/key-value-pairs/2044/2 "2012-11-01T11:22:02Z")

</div>

Hi Geert   
  
 You could use the IniFile Iterator action to iterate through the settings and build up a list. Unfortunately at the moment we don’t really have an ideal data structure that can be used for key/value pairs, so the key& value would need to be stored together and split when using them.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 5, 2012, 10:39am UTC](https://www.finalbuilder.com/forums/t/key-value-pairs/2044/3 "2012-11-05T10:39:04Z")

</div>

Ok, works like a charm. Thanks for the hints.
