title: Usage of StreamReader in C#
body: <p>I want to read a file data.json and convert it to a string.</p>
  
  <p>My code is this one:</p>
  
  <pre><code>String json = null;
  
  using (StreamReader sr = new StreamReader("data.json"))
  {
       json = sr.ReadToEnd();
  }
  </code></pre>
  
  <p>but Visual Studio tells me that <code>StreamReader</code> does not expect a String as constructor argument.</p>
  
  <p>How can I tell StreamReader that I want to read the file data.json?</p>