title: C# StreamReader converts "center text/content" of the string to a three-ellipses "..."
body: <p>I have a text file containing an HTML codes (saved as UTF-8). </p>
  
  <p>When I try to read the text file using StreamReader (I also tried HtmlDocument.Load()), the content of the file being read seems to be lacking.</p>
  
  <p>And the lacking part is somewhat at the center of the string and replaced with "...".</p>
  
  <p>On the image is a comparison of the string (left side: string read from the StreamReader | right side: string from text file)</p>
  
  <p><a href="https://i.stack.imgur.com/n2dPT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n2dPT.png" alt="string_comparison"></a></p>
  
  <p>Anyone can help? Thanks.</p>
  
  <p>edit: here is the code:</p>
  
  <pre><code> private Dictionary&lt;string, string&gt; GetSwitzerlandPostalCodes()
      {
          Dictionary&lt;string, string&gt; list = new Dictionary&lt;string, string&gt;();
          string wikipath = Helper.GetWikiPath() + ZipCodeFileName;
          HtmlDocument htmlDoc = new HtmlDocument();
          string postalCodeUrl = PostalCodeUrl;
          var path = SaveUrlToText(postalCodeUrl, wikipath);
  
          htmlDoc.Load(path);  // I also tried to load the path directly and still the OutputHTML or the DocumentNode would contain the ellipses text
  
          string stringHTML;
  
          using (StreamReader sr = new StreamReader(path)) {
              stringHTML = sr.ReadToEnd();  //the stringHTML here would have the ellipses
          }
  
          htmlDoc.LoadHtml(stringHTML);
  
          var tableNode = htmlDoc.DocumentNode.SelectNodes("//div[@id='mw-content-text']/table/tr");
  
          foreach (HtmlNode item in tableNode)
          {
  </code></pre>