MemoWritBinary Function | |
Write binary data o a disk file. Use this function for binary files instead of MemoWrit(). This day may be read with MemoReadBinary().
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION MemoWritBinary(
cFile AS STRING,
bData AS BYTE[]
) AS LOGIC
public static bool MemoWritBinary(
string cFile,
byte[] bData
)
Request Example
View SourceParameters
- cFile
- Type: 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
- Type: Byte
The contents to write
Return Value
Type:
LogicTRUE if the writing operation is successful; otherwise, FALSE
See Also