Click or drag to resize

MemoReadBinary Function

X#
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.19
Syntax
 FUNCTION MemoReadBinary(
	cFile AS STRING
) AS BYTE[]
Request Example View Source

Parameters

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: Byte
The file as an array of bytes
See Also