IMBack

Hi,

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("helloWorld.zip", @"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

Biche

I guess it should be similar to the FileOpenDialog, but for a faster answer, you should post your question there : http://community.sharpdevelop.net/forums/12/ShowForum.aspx.