Compare 2 Text files line by line and replace when true or false
<p>I have 2 text (ini) files to compare. first one reads</p>

<pre><code>NUMM=1
DURC=360
VORS=2500
SPAN=130
</code></pre>

<p>the second one reads</p>

<pre><code>NUMM=0
DURC=340
VORS=3000
SPAN=140
</code></pre>

<p>in a third file I say which data form the first file should be replace in the second file by telling true or false</p>

<pre><code>NUMM=false
DURC=true
VORS=true
SPAN=false
</code></pre>

<p>Result of the second file after replaceing should be</p>

<pre><code>NUMM=1
DURC=340
VORS=3000
SPAN=130
</code></pre>

<p>I tried a few ways but could not work it out in C#</p>
