I have a c++ code that performs certain task and gives out 4 integers in a loop. The communication part related to task is written in python. What is the best way to grab the integers in a python script such that i can use it with the communication module ? Currently I'm thinking of priting the c++ integers to a file and read the same file with python script, which is very inefficient. How can I implement a shared memory ?
./a.out Output: a,b,c,d
comm.py Input: a,b,c,d