Deleting Original Line from the output file
<p>I want to remove <code>tempstring</code> lines from the output.txt file     </p>

<pre><code>File.Copy(words, Npath);
StreamReader temp = new StreamReader(Npath, Encoding.UTF8);
string tempstring = temp.ReadToEnd();
string[] temp3 = tempstring.Split(',');
temp.Close();

StreamWriter sW = File.AppendText(Npath);
string remove = tempstring.Replace(tempstring," ");
foreach (string item in temp3)
{
    string str = item.TrimStart().TrimEnd();
    string newStr = "&lt;addr-line&gt;" + str + "&lt;/addr-line&gt;";
    sW.WriteLine(newStr);
}
sW.Close();
</code></pre>

<p>The output .txt file shows </p>

<blockquote>
  <blockquote>
    <p><strong>Marko Kostic, Faculty of Technical Sciences, University of Novi Sad,
    Trg D. Obradovica 6, 21125 Novi Sad, Serbia</strong></p>
  </blockquote>
</blockquote>

<pre><code>&lt;addr-line&gt;Marko Kostic&lt;/addr-line&gt;
&lt;addr-line&gt;Faculty of Technical Sciences&lt;/addr-line&gt;
&lt;addr-line&gt;University of Novi Sad&lt;/addr-line&gt;
&lt;addr-line&gt;Trg D. Obradovica 6&lt;/addr-line&gt;
&lt;addr-line&gt;21125 Novi Sad&lt;/addr-line&gt;
&lt;addr-line&gt;Serbia&lt;/addr-line&gt;
</code></pre>

<p>I want to remove the Bold Paragraph, which in code is <code>tempstring</code> from the output file</p>

<p>Any suggestions?</p>
