Karl66
asked on
C# C SHARP : how to automatically unzip a tar.gz file using C# code
Ok this is a tough one...
I am writing a C# application to parse an error log. I can handle the file\open portion and the searching of the text files etc... the problem is the files come in a tar.gz compressed bundle cuch as winrar might open. I want people to be able to browse to the file (again, no problem) and thn have it uncompressed automatically and then I will selectively search the text files. So what C# code can I use to, once selected, open a tar.gz file and "unzip" it to a given directory for further use?
Thanks! -Karl66
I am writing a C# application to parse an error log. I can handle the file\open portion and the searching of the text files etc... the problem is the files come in a tar.gz compressed bundle cuch as winrar might open. I want people to be able to browse to the file (again, no problem) and thn have it uncompressed automatically and then I will selectively search the text files. So what C# code can I use to, once selected, open a tar.gz file and "unzip" it to a given directory for further use?
Thanks! -Karl66
You can use this Library to do it >> http://sharpziplib.componentspot.qarchive.org/
ASKER
Link no work - can you check? Anyone else have a thought?
Karl66
Karl66
it works for me. I"m not sure why it isn't working for you.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
OK the link works I'll check it out and let you know.
Thanks!
Thanks!
ASKER
Specifically I have a tar.gz file and need the code that I can use to make "unzip" to a folder of my choosing including one I can create. Thanks for the help!