Differences
This shows you the differences between the selected revisions of the page.
2016-02-21 | 2016-02-21 | ||
no summary (64.233.173.70) (hidden) | Restored revision 1454579028. Undoing revision 1456056562. (Petr) (hidden) | ||
Line 5: | Line 5: | ||
open <session_url> | open <session_url> | ||
- | open <site>FileStream sourceFile = File.OpenRead(inFilename); | + | open <site> |
- | FileStream destFile = File.Create(outFilename); | + | |
- | GZipStream compStream = | + | |
- | new GZipStream(destFile, CompressionMode.Compress); | + | |
- | int theByte = sourceFile.ReadByte(); | + | |
- | while (theByte != -1) | + | |
- | { | + | |
- | compStream.WriteByte((byte)theByte); | + | |
- | theByte = sourceFile.ReadByte(); | + | |
===== Remarks ===== | ===== Remarks ===== |