<p>I'm trying to read the contents of a text file, in this case a list of computer names (Computer1, computer2 etc,) and I thought that StreamReader would be what you would use but when I do the following:</p>

<pre><code>StreamReader arrComputer = new StreamReader(FileDialog.filename)();
</code></pre>

<p>I got this exception:</p>

<pre><code>The type or namespace name 'StreamReader' could not be found (are you missing a using directive or an assembly reference?)  
</code></pre>

<p>I'm very new to C# so I'm sure I'm making a newbie mistake.</p>

try
```
```
using System.IO;

StreamReader arrComputer = new StreamReader(FileDialog.filename);
```
```