Example #1
0
 public static void CacheCookies(Wiki wiki, string fileName)
 {
     using (FileStream fs = new FileStream(fileName, FileMode.Create))
         using (GZipStream gs = new GZipStream(fs, CompressionMode.Compress))
         {
             byte[] data = wiki.CookiesToArray();
             gs.Write(data, 0, data.Length);
         }
 }