I was tring to create a zip folder, with only .txt files. Using SharpZipLib

-- I am having some problems understanding what does "filefilter" and if I am doing it correct.

FastZip fz = new FastZip();

string[] files = Directory.GetFiles(@"c:\test","*.txt",SearchOption.AllDirectories);

foreach (string file in files)


// ----- works until here.. it finds only .txt files -----

fz.CreateZip("", @"c:\test\"+file, true, ); //dont know what is file filter


Thank you in advance..

Re: Visual C# General zip files to a folder using SharpZipLib


I guess it should be similar to the FileOpenDialog, but for a faster answer, you should post your question there :