MKI_FileReadEndOfFile (File I/O)

www.CAD6.com

C++ Syntax

bool

MKI_FileReadEndOfFile( void );

 

Checks whether the current file is terminated correctly by testing whether the last keyword read was =EXIT= and by reading the CRC ("cyclic redundancy check") value of the file. Even though the plug-in could test this manually, do always use this procedure to be compatible with future releases of the interface!

 

Return Value

Returns true if the file was terminated correctly by the keyword =EXIT=, else false. Additionally, the return value of MKI_FileReadError will be set to true if an error occurred.

 

Comment

This procedure relies on a high-performance read cache previously established by either MKI_FileReadInitDisk, MKI_FileReadInitDiskOffset or MKI_FileReadInitMemory. As a result, it will fail if this cache is currently not activated!

 

The behavior of this procedure depends on the settings of MKI_FileReadDelimiters!

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH