LoadFile(String,Byte[]) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The LoadFile() method loads data from a specified file into a parameter of the method. This overload of the method loads the data to a byte array. This method loads data from a specified file into the provided byte array.
'Declaration
Public Overloads Shared Sub LoadFile( _
ByVal filePath As String, _
ByRef returnedData() As Byte _
)
public static void LoadFile(
string filePath,
out byte[] returnedData
)
Parameters
- filePath
- Required. Holds the full path to the file from which to read the data.
- returnedData
- Output. Holds a byte array into which the data is written.