public virtual void WriteSupportFile(TextFile file, Stream stream) { using (StreamWriter writer = new StreamWriter(stream, new UnicodeEncoding())) { writer.Write(file.Data); } }
private ISupportFile readTextSupportFile(ZipInputStream zipStream, ZipEntry entry) { TextFile file = new TextFile(); file.Filename = entry.Name; using (StreamReader reader = new StreamReader(zipStream)) { file.Data = reader.ReadToEnd(); } return file; }