1
Answer

How To Unpack tar.gz Archive using C#

Rao Rao

Rao Rao

13y
11.7k
1
Can someone kindly help me with this?

 
I have a folder called statistics.tar.gz which contains many txt files. I need to unpack this folder (statistics.tar.gz) and loop through all the files (txt files) and move them to another directory called Destination.
I have tried using DotNetZip library but I cannot get it working with tar.gz
Answers (1)
0
Peter

Peter

NA 4 0 15y
That much I know.  My question is, why one PC converts 1 to string and gets "1" and the other does the same thing and gets "1.0"?
0
Manish Dwivedi

Manish Dwivedi

NA 8.3k 1.2m 15y
Hi

This is happening due to this res = "1.0" {string} while converting.

because you are using int.TryParse so u have to pass the values like 1,2,123,10 etc in the res parameter.

I think u got it.