[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1164
  • Last Modified:

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
0
Karl66
Asked:
Karl66
  • 3
  • 3
1 Solution
 
nathana21Commented:
You can use this Library to do it >> http://sharpziplib.componentspot.qarchive.org/
0
 
Karl66Author Commented:
Link no work - can you check? Anyone else have a thought?

Karl66
0
 
nathana21Commented:
it works for me. I"m not sure why it isn't working for you.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
nathana21Commented:
0
 
Karl66Author Commented:
OK the link works I'll check it out and let you know.
Thanks!
0
 
Karl66Author Commented:
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!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now