title: How to inflate a file with zlib.NET?
body: <p>I'm using the <a href="http://www.componentace.com/zlib_.NET.htm" rel="noreferrer">zlib.NET</a> library to try and inflate files that are compressed by zlib (on a Linux box, perhaps).  Here's what I'm doing:</p>
  
  <pre><code>zlib.ZInputStream zinput =
      new zlib.ZInputStream(File.Open(path, FileMode.Open, FileAccess.Read));
  
  while (stopByte != (data = zinput.ReadByte()))
  {
    // check data here
  }
  
  zinput.Close();
  </code></pre>
  
  <p>The data bytes match the compressed data bytes, so I must be doing something wrong.</p>