My work requires that I perform a mathematical simulation whose parameters come from a binary file. The simulator can read such binary file without a problem.
However, I need to peek inside the binary file to make sure the parameters are what I need them to be, and I cannot seem to be able to do it.
I would like to write an script in Python which would allow me to read in the binary file, search for the parameters that I care about, and display what their values are.
What I know about the binary file:
It represents simple text (as opposed to an image or soud file). There is a piece of code that can "dump" the file into a readable format: if I open that dump in Emacs I will find things like:
CENTRAL_BODY = 'SUN'
All the file is just a series of similar instructions. I could use that dump code, but I much rather have Python do that.
This seems to be a very trivial question, and I apologize for not knowing better. I thought I was a proficient programmer!
Many thanks.