retrieve file line one by one using C#?
<p>I have a file  name <strong>abc.txt</strong>. On that file have some lines like this:<br></p>

<blockquote>
  <p>jani<br> 50,south carolina,USA<br>
  karim<br> 16,roam,Italy<br> fara<br>
  52,sydny,Australia<br></p>
</blockquote>

<p>First line is name and second line is address. Now I need the info name on a string let's say <strong>nameString</strong> and address is let's say <strong>addressString</strong>. How can I do it using C#?
I write a code in PHP its working smoothly. I need the same thing in C#. For yours clarification here is the php code:</p>

<pre><code>$file=file_get_contents('abc.txt');

$arr=explode("\n",$file);
for ($i=0;$i&lt;count($arr);$i=$i+2)
{

    $name=$arr[$i];
    $address=$arr[$i+1];
    echo $name ."&lt;br/&gt;";
    echo $address. "&lt;br/&gt;";

}
</code></pre>

<p>How can I do the same thing in C#????
Another question: Is there any function in C# as like as explode in php?</p>

<p>Thanks in advance <br>
riad</p>
