change string into var datatype in c#
<p>I am reading data from file like this</p>

<pre><code>using (StreamReader r = new StreamReader("newfile.txt"))
{

            string lines1;
            lines1 = r.ReadLine();
            var lines = lines1;

            foreach (string line in lines)
            {
                var dictionary = new Dictionary&lt;String, Int32&gt;();
                var records = line.Split(',');
</code></pre>

<p>How can i convert string data type to var data type?  </p>

<p>if i used this line</p>

<pre><code>   var lines = lines1;
</code></pre>

<p>then the error accur at</p>

<pre><code> var records = line.Split(',');
</code></pre>
