i want to create a file exactly like pickled file using C program in Qt without using python.
this file will be read by python (unpickled ) to initialize some properties. Or Is there any way one can know the exact syntax of pickled file n then write it using programming ?
can anybody please help?

Recommended Answers

All 2 Replies

Python is open source and written in C, so in principle you should be able to extract pickling functions from the source code of python itself.

It's most certainly a useless task to try to write another C function for this.

Another way to hide things is to use an embedded python interpreter in your C program, and use it to call the methods of the Pickle module :)

U R Right.
I think i should use pickling functions in python.
Thanks a lot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.