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
I assume your Python dict is using simple data types and no objects (so strings/numbers/lists/nested dicts), since you want to use it in C++.
I would suggest using json library (http://docs.python.org/library/json.html) to deserialize it and then use a C++ equivalent to serialize it to a C++ object.
Read python dictionary using c++