Skip to content

IOFileFormat.Write Method

Overloads

Name Description
Write(IOFile, String, String, Boolean) Writes a file to a directory with the specified name.
Write(IOFile, String, Boolean) Writes a file to disk.
Write(IOFile) Writes a file to a byte array.
Write(IOFile, Stream) Writes a file to a stream.

Write(IOFile, String, String, Boolean)

Writes a file to a directory with the specified name.

public void Write(IOFile file, string directory, string name, bool zipped = false);

View source

Parameters

Name Type Description
file IOFile The file to write.
directory String The directory to write the file to.
name String The name of the file without extension.
zipped Boolean Whether to write the file inside a ZIP archive.

Write(IOFile, String, Boolean)

Writes a file to disk.

public void Write(IOFile file, string filePath, bool zipped = false);

View source

Parameters

Name Type Description
file IOFile The file to write.
filePath String The path to write the file to.
zipped Boolean Whether to write the file inside a ZIP archive.

Write(IOFile)

Writes a file to a byte array.

public Byte[] Write(IOFile file);

View source

Parameters

Name Type Description
file IOFile The file to write.

Returns

Byte[]

A byte array containing the file data.

Write(IOFile, Stream)

Writes a file to a stream.

public abstract void Write(IOFile file, Stream stream);

Parameters

Name Type Description
file IOFile The file to write.
stream Stream The stream to write to.