Why is there need to set StreamReader sr = null first ?? Does it have some default value in it or what?
<p>Why set it to null first ?</p>

<p>[EDIT]</p>

<p>there was this code about reading some file..it was like</p>

<pre><code>StreamReader sr=null;
StreamReader sr= new StreamReader("file.txt");
</code></pre>

<p>I asked why would you set "SR" as null first BEFORE referencing the file u wanna read</p>
