openFileRead
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE NoteA relative filename must be passed to this function. The absolute filename is determined by means of a search procedure. First a search is made to determine whether the given file is located in a directory of the databases. If the desired file is not found the active configuration directory is used.
Function Syntax
dword openFileRead (char filename[], dword mode); // form 1dword openFileRead (char filename[], dword mode, dword fileEncoding); // form 2
Description
This function opens the filename file for the read access. Ifmode=0 the file is opened in text mode;if
mode=1 the file is opened in binary mode.
Parameters
- filename: filename
- mode:
- fileEncoding: Identifier of the Microsoft code page that is used to encode the file.