Search code examples
c#visual-studiostreamreader

StreamReader is missing?


is there something that I can do to amend this?

A using namespace directive can only be applied to namespaces; 'System.IO.StreamReader' is a type not a namespace

Looking into "add a reference" and the StreamReader is not available in the list of options available for selection.

using System.IO;
using System.IO.StreamReader;

Solution

  • using System.IO;
    //THATS TOO MUCH : using System.IO.StreamReader;