Hi,
I would like to solve a problem.
Normally in my code I use this:
----------------------------------------
public void SaveFileCat(string path)
{
Stream myfile;
IFormatter formatter = new BinaryFormatter();
if(File.Exists(path))
{
myfile = new FileStream(path, FileMode.Truncate, FileAccess.Write);
}
else
myfile = new FileStream(path, FileMode.CreateNew, FileAccess.Write);
formatter.Serialize(myfile, listCat);
myfile.Close();
}
-------------------------------------------
The problem:
serialized files could to be up to 1 MB long, it depend from archive lenght.
In #develop there's #ziplib, but I don't know how to make it,
or better, I tried to make it, but only with normal file is simple.
There are other ways to make it?
Thanks you
frazan