I have a python dictionary stored in a file which I need to access from a c++ program. What is the best way of doing this?
Thanks
There are umpteen Python/C++ bindings (including the one in Boost) but I suggest KISS: not a Python/C++ binding but the principle "Keep It Simple, Stupid".
Use a Python program to access the dictionary. :-)
You can access the Python program(s) from C++ by running them, or you can do more fancy things such as communicating between Python and C++ via sockets or e.g. Windows "mailslots" or even some more full-fledged interprocess communication scheme.
Cheers & hth.
Read python dictionary using c++