Last active
April 18, 2025 12:52
-
-
Save aspose-com-gists/d36442ed0c54ec0f90e04486f742d742 to your computer and use it in GitHub Desktop.
Uncompress Z File in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string dataDir = "Desktop"; | |
//Extracts the archive and copies extracted content to file stream. | |
using (var archive = new ZArchive(dataDir + "archive.z")) | |
{ | |
// Create a FileOutputStream to write the extracted content to the output file. | |
using (var extracted = File.Create(dataDir + "alice29_out.txt")) | |
{ | |
// Extract the contents of the archive to the output file by calling the Extract method. | |
archive.Extract(extracted); | |
} | |
} | |
Console.WriteLine("Successfully Opened Z Archive"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment