MKI_FileWriteString (File I/O) Changed in Version 2019.1

www.CAD6.com

C++ Syntax

void

MKI_FileWriteString(

 const LPCWSTR f_pszValue );

 

Converts a UTF-16 string to UTF-8 and writes it as a quoted string to the current write cache. If the string does contain escape characters, these will be encoded correctly.

 

Parameters

Value

[const LPCWSTR] Address of a buffer containing the null-terminated string to be written to the file.

 

Return Value

None, but if a write error occurs, the return value of MKI_FileWriteError will be set to true. Once a write error occurred, all further calls to any write procedure will be ignored (i.e. return false).

 

Comment

This procedure relies on a high-performance write cache previously established by either MKI_FileWriteInitNull, MKI_FileWriteInitDisk or MKI_FileWriteInitMemory. As a result, it will fail if this cache is currently not activated!

 

The behavior of this procedure depends on the settings of MKI_FileWriteDelimiters and MKI_FileWriteZeros!

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH