title: variable definition by fscanf textfile.txt in C
body: <p>I have a textfile.txt containing variable definitions line by line, e.g. length = 1.1m</p>
  <p>Using <code>fscanf</code> I want to store in my variable <code>double length</code> the value 1.1</p>
  <p>Can someone give me some hints how to use fscanf in this case having a '=' seperator ?</p>
  <p>Thanks in advance!</p>
  <p><strong>Edit:</strong>
  Here is an exemplary inputfile.txt showing its structure:</p>
  <pre><code>[elements]
  Number of elements = 2
  length_1 = 1.5m
  length_2 = 2.1m
  velocity_1 = 0.35m/s
  velocity_2 = 0.11m/s
  
  [cells]
  Number of cells = 2
  cell_1 = 0.0m
  cell_2 = 1.3m
  </code></pre>
  <p>I want to extract the parameters of both sections to two different structs.</p>