System.IO.Compression.ZipArchiveFile.WriteAllText C# (CSharp) Method

WriteAllText() public method

Replaces the data in the archiveFile represented by the ZipArchiveFile with the text in 'data'.
public WriteAllText ( string data ) : void
data string The data to replace the archiveFile data with.
return void
        public void WriteAllText(string data)
        {
            TextWriter writer = CreateText();
            writer.Write(data);
            writer.Close();
        }