title: How to trim the illegal characters from a string
body: <p>I will read a file from my computer using </p>
  
  <pre><code>   StreamReader sr = new StreamReader(FileName);
  
              string str = sr.ReadToEnd();
  </code></pre>
  
  <p>In this i am getting some illegal characters like /n,/r and some other.</p>
  
  <p>I Would like to replace illegal characters with a empty character. I tried of  making an character array but i did not able to remove those so can any one help me</p>