IOFile.Write Method
Overloads
| Name | Description |
|---|---|
| Write(String, Boolean) | Writes this file to disk. |
| Write(String, String, Boolean) | Writes this file to a directory with the specified name. |
| Write(Stream) | Writes this file to a stream. |
| Write() | Writes this file to a byte array. |
Write(String, Boolean)
Writes this file to disk.
public void Write(string filePath, bool zipped = false);
Parameters
| Name | Type | Description |
|---|---|---|
| filePath | String | The path to write the file to. |
| zipped | Boolean | Whether to write the file inside a ZIP archive. |
Write(String, String, Boolean)
Writes this file to a directory with the specified name.
public void Write(string directory, string name, bool zipped = false);
Parameters
| Name | Type | Description |
|---|---|---|
| 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(Stream)
Writes this file to a stream.
public void Write(Stream stream);
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Stream | The stream to write to. |
Write()
Writes this file to a byte array.
public Byte[] Write();
Returns
A byte array containing the file data.