title: Search the for a particular word in text file and Append the entire Line
body: <p>I have a text file with 7 number of columns. The columns are always same may be 7 or more sometimes. My <strong>text file is <code>tab delimited</code></strong>.
  So i would like to know how can i set a search for all the columns that are available in my text file and delete that entire line.</p>
  
  <p>Currently, i am writing a <strong>single function for <code>each columns search and delete the file</code></strong>. i need a common function to search the whole text file and append the line</p>
  
  <p>Codes:</p>
  
  <pre><code> public void stack()
      {
          string old;
          string iniPath = Application.StartupPath + "\\list.ini";
          bool isDeleteSectionFound = false;
          List&lt;string&gt; deleteCodeList = new List&lt;string&gt;();
          using (StreamReader sr = File.OpenText(iniPath))
          {
              while ((old = sr.ReadLine()) != null)
              {
                  if (old.Trim().Equals("[DELETE]"))
                  {
                      isDeleteSectionFound = true;
                  }
                  if (isDeleteSectionFound &amp;&amp; !old.Trim().Equals("[DELETE]"))
                  {
                      deleteCodeList.Add(old.Trim());
                  }
              }
          }
  
          StringBuilder sb = new StringBuilder();
          using (var reader = new StreamReader(File.OpenRead(textBox1.Text)))
          {
              //;
  
              List&lt;string&gt; data = new List&lt;string&gt;();
              while (!reader.EndOfStream)
              {
                  var line = reader.ReadLine();
                  var values = line.Split('\t');
  
                  if (values.Contains(deleteCodeList))// getting that error
                      continue;
  
                  //
                  data.Add(string.Join("\t", values));
  
              }
          }
          File.WriteAllText(textBox1.Text, sb.ToString());
      }
  </code></pre>