- Joined
- Feb 2, 2012
- Messages
- 1,667
- Reaction score
- 104
- Points
- 78
Is there any API that I don't know about that can be called let's say "oapiReadLine(FILEHANDLE fh,char* line)" ?
there is oapiWriteLine, and the APIs to read float, strings, vectors etc... but what if I want to read a general line and scan it for any value? of course I could use ifstream etc but that would require to "guess" the orbiter's directories structure, while using the default FILEHANDLE won't have this problem, but I can't use an orbiter FILEHANDLE as an ifstream without falling in version compiling issues...
So does anyone know if there is one? and if not shouldn't it be put in the workshop to be implemented?
Thanks
Fred
there is oapiWriteLine, and the APIs to read float, strings, vectors etc... but what if I want to read a general line and scan it for any value? of course I could use ifstream etc but that would require to "guess" the orbiter's directories structure, while using the default FILEHANDLE won't have this problem, but I can't use an orbiter FILEHANDLE as an ifstream without falling in version compiling issues...
So does anyone know if there is one? and if not shouldn't it be put in the workshop to be implemented?
Thanks
Fred
Last edited: