iso11783FSOpenFile
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function opens a file or directory.Parameters
- path: absolute path of the file
- flags: options to open the file
- Bit 1-2
- 0: Read only
- 1: Write only
- 2: Read and write
- 3: Open directory for reading
- Bit 3
- 0: Open an existing file or directory
- 1: Create a new file or directory if not yet existing
- Bit 4
- 0: Random access
- 1: Append
- Bit 5
- 0: Shared access
- 1: Exclusive access
- Bit 1-2
Return Values
- > 0: file handle
- < 0: error code