openFileWrite
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE NoteBefore this function can be called the write path must be set by the function SetWritePath. Otherwise the configuration directory will be used. A relative filename must be passed to the function.
Function Syntax
dword openFileWrite (char filename[], dword mode); // form 1dword openFileWrite (char filename[], dword mode, dword fileEncoding); // form 2
Description
This function opens the filename file for the write access.- If
mode=0, writing can be executed in text mode; ifmode=1, writing can be executed in binary mode. An already existing file will be overwritten. mode=2to append data at the end of the file use for text mode.mode=3to append data at the end of the file for binary mode.
Parameters
- filename: filename
- mode:
- fileEncoding: Identifier of the Microsoft code page that is used to encode the file.