title: How to use Substring function in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10901880/how-to-break-a-string-at-each-comma">How to break a string at each comma?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to split this string  in C#.</p>
  
  <pre><code>string str= "ahmad,ehsan,mohmmad,sss";
  </code></pre>
  
  <p>The result must be as below:</p>
  
  <pre><code>ahmad
  ehsan
  mohmmad
  sss
  </code></pre>