title: GZipStream not working
body: <p>I am using the following C# code to compress a file:</p>
  
  <pre><code>// Open the stream we want to compress
  FileStream fs = File.Create(@"C:\Projects\Samples\test\compressed.zip", 0);
  
  // Creates the GZipStream
  GZipStream gzip = new GZipStream(fs, CompressionMode.Compress);
  
  // Reading the content to compress
   byte[] bytes = File.ReadAllBytes(@"C:\Projects\Samples\samplefile.xml");
  
  // Writing compressed content
  gzip.Write(bytes, 0, bytes.Length);
  gzip.Close();  // This also closes the FileStream (the underlying stream)
  </code></pre>
  
  <p>However, when I extract the file from windows explorer the file loses it's extension so instead of samplefile.xml it just becomes samplefile. Same thing happened with .txt file not just .xml file.</p>
  
  <p>Can you help me see what I'm doing wrong?</p>