MemoReadBinary Function | |
Return the contents of a binary file as an array of bytes.
Use this function in stead of MemoRead() to read the contents of a binary file.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION MemoReadBinary(
cFile AS STRING
) AS BYTE[]
public static byte[] MemoReadBinary(
string cFile
)
Request Example
View SourceParameters
- cFile
- Type: String
The name of the binary file to read from disk, including an optional drive, directory, and extension. SetDefault() and SetPath() settings are ignored; the Windows default is used unless you specify a drive and directory as part of the file name. No extension is assumed
Return Value
Type:
ByteThe file as an array of bytes
See Also