title: System.IO.EndOfStreamException
body: <p>Friends i have a binary file named Vector.bin, when i try to load it for reading than i got the the error message </p>
  
  <blockquote>
    <p>System.IO.EndOfStreamException Additional information: Unable to read beyond the end of the stream.</p>
  </blockquote>
  
  <p>I am new to C# and I don't understand C# in advanced level. Please suggest the possible solution in this regard. The error is raised while reading   "decoder.LoadModel(filename);"<br>
  Some parts of my code is below  </p>
  
  <pre><code>public WordEMWrapFeaturizer(string filename)
  {
      WSDSharp.Decoder decoder = new WSDSharp.Decoder();
      decoder.LoadModel(filename);
      string[] terms = decoder.GetAllTerms();
      vectorSize = decoder.GetVectorSize();
     m_WordEmbedding = new Dictionary&lt;string, Vector&gt;();
      m_UnkEmbedding = new Vector(vectorSize);
  }
  </code></pre>