FileReadAllBytes Method (KernelTransaction, String) |
[AlphaFS] Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static byte[] ReadAllBytes(
KernelTransaction transaction,
string path
)
Public Shared Function ReadAllBytes (
transaction As KernelTransaction,
path As String
) As Byte()
public:
static array<unsigned char>^ ReadAllBytes(
KernelTransaction^ transaction,
String^ path
)
static member ReadAllBytes :
transaction : KernelTransaction *
path : string -> byte[]
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to open for reading.
Return Value
Type:
ByteA byte array containing the contents of the file.
See Also