点击或拖拽改变大小

Functions.MemoWritBinary 方法

X#
Write binary data o a disk file. Use this function for binary files instead of MemoWrit(). This day may be read with MemoReadBinary().

命名空间:  XSharp.Core
程序集:  XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法
 FUNCTION MemoWritBinary(
	cFile AS STRING,
	bData AS BYTE[]
) AS LOGIC
查看代码

参数

cFile
类型:String
The name of the target disk file, 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. If the file does not exist, it is created. If it exists, this function attempts to open the file in exclusive mode and, if successful, the file is overwritten without warning or error. If access is denied because, for example, another process is using the file, MemoWrit() returns FALSE and NetErr() is set to TRUE.
bData
类型:Byte
The contents to write

返回值

类型:Boolean
TRUE if the writing operation is successful; otherwise, FALSE
参见