Thanks. I actually was asking how to do it in C++, sorry for the confusion.
But I figured it out:
FILEHANDLE hFile = oapiOpenFile("MyConfig.cfg", FILE_IN, CONFIG);
char *line;
while (oapiReadScenario_nextline(hFile, line))
{
if (strcmp(line, "BEGIN_MYTAG") == 0)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.