How to replace the following character with an empty space and write in next line?
<p>How to replace that character which is square in shape<code>(□)</code> with a \n or an empty space and write in next line using c#?...It is writing in text file with □... Here is my code....</p>

<pre><code> string line = dt.Rows[0].ItemArray[0].ToString().Replace(Environment.NewLine, "&lt;br&gt;");
</code></pre>

<p>and</p>

<pre><code> if (line.IndexOf(line2, StringComparison.CurrentCultureIgnoreCase) != -1)
    {
        if (!patternwritten)
        {
            dest.WriteLine("");
            dest.WriteLine("Pattern Name : " + line2 );
             patternwritten = true;
         }

  dest.WriteLine("LineNo : " + counter.ToString() + " : " + "" + line.TrimStart());
}
</code></pre>

<p>But it is writing the whole line with  □....Any suggestion??</p>
