getProfileString
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE NoteA filename must be passed to this function. The absolute filename is determined by means of a search procedure.
Function Syntax
Description
Searches the file filename under section section for the variable entry. Its contents (value) are written to the buffer buff. Its length must be passed correctly in buffsize. If the file or entry is not found, the default value def is copied to buffer. If the read string length is longer than the buffer, the string will be cut to the buffer length.Parameters
- section: Section of the file as a string.
- entry: Variable name as a string.
- def: Default value in case of error as a string.
- buff: Buffer for the read-in character as a string.
- buffersize: Size of buff in bytes.
- filename: Filename as a string.
- utf16: If this flag is set the file will be interpreted as UTF-16LE encoded, if the corresponding BOM is also present. The string written to buff will be converted to the CAPL encoding.
Return Values
- Length of the read string.
- Length of the default string: Fault Key not found
- -1: Fault File not found