title: Runtime error Attempting to deserialize an empty stream
body: <p>I am trying to <code>deserialize</code> an list of string from a file. Here my code</p>
  
  <pre><code>FileStream filestream = new FileStream(@"D:\cache.bin", FileMode.OpenOrCreate);
  try
  {
      BinaryFormatter binformat = new BinaryFormatter();
      _cacheFileList = (List&lt;string&gt;)binformat.Deserialize(filestream);
  }
  catch (SerializationException ex)
  {
      Console.WriteLine(ex.Message);
  }
  finally 
  {
      filestream.Close();
  }
  </code></pre>
  
  <p>I am getting a Runtime error. <strong>Attempting to deserialize an empty stream.</strong></p>