Read parameters from file both to C and Python scripts : <p>I am new to C programming, and I am trying to have one parameters file that will be accessed by Python script and C script, so I would have to define the parameters in both scripts every run.
For example, in C I have:</p>

<pre><code>doublereal N,DB,DW,PP;
N  = 15;
DB = 1.2;
DW = 150;
PP = 90; 
</code></pre>

<p>In Python I save the parameters in a dictionary</p>

<pre><code>pars = {'N':15.0,'DB':1.2,'DW':150.0,'PP':90.0}
</code></pre>

<p>What is the best way to structure a file from which I will read those values both into Python and C scripts?</p>
