API Question Using FILEHANDLE to retrieve data in arbitrary format?

wingnut

Donator
Donator
Joined
May 10, 2013
Messages
129
Reaction score
0
Points
16
Can FILEHANDLE returned from oapiOpenFile or passed as parameter in clbkSetClassCaps be used to retrieve data in the config file which is not stored in the identifier = value format?
Or would the config file needed to be separately opened with standard C++ functions to retrieve such data?
 
It can with oapiReadScenario_nextline (until a line starting with "END" statement). Note that leading and trailing whitespaces (space, tab), as also comments (starting with ';') are removed from the read line.
 
:facepalm:
Nice, thank you orb. I did not dare to try using the function for reading data from config files as the API documentation states it is for reading scenario files.
 
Last edited:
Back
Top