Skip to content

IOFile.Write Method

Overloads

Name Description
Write(Stream) Writes this file to a stream.
Write(Stream, String, CompressionFormat) Writes this file to a stream, optionally compressing it.

Write(Stream)

Writes this file to a stream.

public void Write(Stream stream);

View source

Parameters

Name Type Description
stream Stream The stream to write to.

Write(Stream, String, CompressionFormat)

Writes this file to a stream, optionally compressing it.

public void Write(Stream stream, string filename, CompressionFormat compressionFormat);

View source

Parameters

Name Type Description
stream Stream The stream to write to.
filename String The filename of the file, with extension. Used as the name of the entry when compressionFormat is Zip.
compressionFormat CompressionFormat The compression format to use.