Hello,
I am searching for the fastest (best coded way) to read a specific txt file out of a zip archive. I only need the second line of this txt file,
so I do not need to unzip and store it somewhere on the file system. How can I do this with a good coding style?
At the moment I am iterating through the file zip file with:
using (ZipInputStream zis = new ZipInputStream(file.InputStream))
{
ZipEntry theEntry; while ((theEntry = zis.GetNextEntry()) != null)
{
if (theEntry.Name.Equals(projectName+"/Device/setup.mcl"))
{
//.....
}
I have read, that there is a better solution using the ZipFile class insteard, but I did not solve the problem until now.
Can anybody give me a hint?
Regards,
Martin