[]
Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
public static byte[] ReadAllBytes(string path)
| Type | Name | Description |
|---|---|---|
| string | path | The file to open for reading. |
| Type | Description |
|---|---|
| byte[] | A byte array containing the contents of the file. |