我将使用最新版本的DotNetZip,并且我有一个包含5个XML文件的zip文件。
我想要打开这个zip文件,读取XML文件并用XML的值设置一个字符串。
我应该如何做呢?
代码:
我想要打开这个zip文件,读取XML文件并用XML的值设置一个字符串。
我应该如何做呢?
代码:
//thats my old way of doing it.But I needed the path, now I want to read from the memory
string xfile = System.IO.File.ReadAllText(strNewFilePath, System.Text.Encoding.Default);
using (ZipFile zip = ZipFile.Read(this.uplZip.PostedFile.InputStream))
{
foreach (ZipEntry theEntry in zip)
{
//What should I use here, Extract ?
}
}
谢谢