Horje
create file gz c# Code Example
create file gz c#
private void CreateTarGZ(string tgzFilename, string fileName)
{
    using (var outStream = File.Create(tgzFilename))
    using (var gzoStream = new GZipOutputStream(outStream))
    using (var tarArchive = TarArchive.CreateOutputTarArchive(gzoStream))
    {
        tarArchive.RootPath = Path.GetDirectoryName(fileName);

        var tarEntry = TarEntry.CreateEntryFromFile(fileName);
        tarEntry.Name = Path.GetFileName(fileName);

        tarArchive.WriteEntry(tarEntry,true);
    }
}




Csharp

Related
c# check if list is empty Code Example c# check if list is empty Code Example
attributes C# reflection variable update site:stackoverflow.com Code Example attributes C# reflection variable update site:stackoverflow.com Code Example
can a dictionary type use get set c# Code Example can a dictionary type use get set c# Code Example
entity framework linq join 2 tables c# Code Example entity framework linq join 2 tables c# Code Example
loops in coding Code Example loops in coding Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10