[]
        
(Showing Draft Content)

C1.Util.DX.Storage.NativeFile.ReadAllBytes

ReadAllBytes Method

ReadAllBytes(string)

Opens a binary file, reads the contents of the file into a byte array, and then closes the file.

Declaration
public static byte[] ReadAllBytes(string path)
Parameters
Type Name Description
string path

The file to open for reading.

Returns
Type Description
byte[]

A byte array containing the contents of the file.