![]() |
OTX Reference
|
|
Read and write access to files More...
Namespaces | |
| namespace | Actions |
| Lists all ActionRealisation extensions. | |
| namespace | DataTypes |
| Data types, see also Core data types. | |
| namespace | Exceptions |
| Error handling. | |
| namespace | Terms |
| Lists all Terms. | |
| namespace | Variables |
| Variable Access. | |
Classes | |
| class | CheckerRule |
| Comprehensive checker rule listing, see also Core checker rules. More... | |
Read and write access to files
The OTX File extension allows general read and write access to files. The extension allows files to be read or written in one of three modes:
The mode of access is determined by the first read or write operation performed on the file after it is opened. Once the mode is determined it cannot be changed and attempts to use other modes on the same open file will result in exceptions.
Actions for deleting files and directories are also included.
It is unspecified whether write actions will immediately influence the file system, or whether data will only be physically written when the SaveFile or CloseFile actions are called.
This extension is limited to those file system operations that are required for typical vehicle diagnostics use cases. Advanced file system functions like setting file rights, moving files, etc. have been intentionally omitted.
All paths shall be defined by a URI (see ISO 13209-2, Annex OTX home and URI recommendation).