title: Make String concatenation faster in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/21078/whats-the-best-string-concatenation-method-using-c">What&#39;s the best string concatenation method using C#?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <p>I have a code snippet like this where a large content of data is read from a file and check each position for some value and concat a string.</p>
  
  <p>This string concatenation takes large amounts of time and processing power. Is there an approach where I can reduce the execution time?</p>
  
  <p><strong>Important: Reading Content file syntax is incorrect just need to give a idea</strong>  </p>
  
  <pre><code>string x;
  
  while (var &lt; File.Length)
  {
    if (File.Content[var] == "A")
    {
         x += 1;    
    }
    else
    {
       x += 0;
    }
    var++;
  }
  </code></pre>