Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
public static System.byte[] ReadAllBytes(
System.string
)
'Declaration
Public Shared Function ReadAllBytes( _
ByVal As System.String _
) As System.Byte()
Parameters
- path
- The file to open for reading.
Return Value
A byte array containing the contents of the file.