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