title: Remove tabs and spaces from text file
body: <p>I have a text file having text below:</p>
  
  <pre><code>Contact Name            |           Contact Number
  </code></pre>
  
  <p>Above like <code>Contact Name\t\t|\t\tContact Number</code> And i am using the following code to remove <code>\t\t|\t\t</code> :</p>
  
  <pre><code> using (StreamReader sr = File.OpenText(fileName))
              {
                  string s = String.Empty;
                  while ((s = sr.ReadToEnd()) != null)
                  {
                   string[] line = s.Split(new string[] {"\t\t|\t\t"}, StringSplitOptions.RemoveEmptyEntries );
                  }
              }
  </code></pre>
  
  <p>I am using the breakpoint to check the values in the "line" variable below:</p>
  
  <pre><code>"Contact Name"
  "Contact Number\r\n\r\n"
  </code></pre>
  
  <p>The above line of code remove <code>\t\t|\t\t</code> but add <code>\r\n\r\n</code>. How do I remove both <code>\t\t|\t\t</code> and <code>\r\n\r\n</code> at a time. Kindly suggest me. Waiting for reply. thanks</p>