Method WriteAndAddFile
WriteAndAddFile(string, byte[])
Writes binary content to path on disk and registers the path with
this registry. Creates any intermediate directories as needed.
Declaration
public bool WriteAndAddFile(string path, byte[] content)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Destination file path. |
| byte[] | content | Binary content to write. |
Returns
| Type | Description |
|---|---|
| bool |
|
WriteAndAddFile(string, string)
Writes text content to path on disk and registers the path with
this registry. Creates any intermediate directories as needed.
Declaration
public bool WriteAndAddFile(string path, string content)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Destination file path. |
| string | content | Text content to write. |
Returns
| Type | Description |
|---|---|
| bool |
|