Click or drag to resize

FileReadAllBytes Method (String, PathFormat)

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

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static byte[] ReadAllBytes(
	string path,
	PathFormat pathFormat
)

Parameters

path
Type: SystemString
The file to open for reading.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).

Return Value

Type: Byte
A byte array containing the contents of the file.
See Also