open zip file in c#
using System;
using System.IO;
using System.IO.Compression;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
string zipPath = @"c:\users\exampleuser\start.zip";
string extractPath = @"c:\users\exampleuser\extract";
string newFile = @"c:\users\exampleuser\NewFile.txt";
using (ZipArchive archive = ZipFile.Open(zipPath, ZipArchiveMode.Update))
{
archive.CreateEntryFromFile(newFile, "NewEntry.txt");
archive.ExtractToDirectory(extractPath);
}
}
}
}
Also in C#:
- c# lambda expression
- nunit return parameter
- c# input integer
- O thread de chamada não pode aceder a este objecto porque existe outro thread que já o tem
- how to make a game
- how to hide and show object in unity script
- unity3d invector expand fsm controller
- c# events and delegates
- isprime c#
- get list length c#
- what data type should be for contact number in asp.net
- prefab gets character transform
- c# yield
- matplotlib measure the width of text
- c# remove spaces from string
- disable mouse unity
- asp.net core task iactionresult
- how to turn a string in a char list c#
- unity making homing missile
- unity get data from firebase
- c# md5 hash file
- how to update modal class using dbfirst in asp.net core
- array copy c#
- unity scene name get