I have a Python script I want to get information from a CPP .exe I have.
The .exe prints a string to console using printf.
I want to be able to get this string into my Python code.
I want to be able, in my Python code, to do something like this :
gyro_data = GetFromCommandLine(cpp.exe.run())
Also - my cpp.exe has a loop that runs forever and keeps feeding console with strings. Can this be done? Or do I have to break my cpp exe to return something instead of printing to screen all the time ?