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 (in XSharp.Core.dll) Version: 2.2a
Syntax View Source
cFile AS STRING,
bData AS BYTE
) AS LOGIC
public static bool MemoWritBinary(
- 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.
- Type: Byte
The contents to write
TRUE if the writing operation is successful; otherwise, FALSE