I have a dictionary that I would like to load from a file into a class variable. The dictionary holds configuration data. I would have different files for different configurations. I was wondering if there is a way to do this? I found pickle but that saves an existing instance as a copy so it can be loaded later.
nizbit
0
Junior Poster in Training
Recommended Answers
Jump to PostCould you give me an example? I think I have an idea what you mean, but I'm not sure.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.