Copy 1 file content in another in c#
<p>I want to copy select parts of one file into another with C#</p>

<p>For example, suppose I have a file with following contents:</p>

<pre><code>&lt;div id="1"&gt; contents of this div.. &lt;/div&gt;
&lt;div id="2"&gt; contents of this div.. &lt;/div&gt;
&lt;div id="3"&gt; contents of this div.. &lt;/div&gt;
</code></pre>

<p>Now if I want to copy only the line <code>&lt;div id="2"&gt; contents of this div.. &lt;/div&gt;</code> into a new file. Then how can i do this efficiently?</p>
