title: Reading a txt.file in C++ with vectors and matrices including commas and square brackets between the numbers
body: <p>The following example is a part of data that I should read in C++. But I don't know how to read matrices and vectors which has square brackets and commas between the numbers. Do you have any such example or an idea on how to read this?</p>
  
  <p>Thanks a lot.</p>
  
  <p>Example data:</p>
  
  <pre><code>[40, 12, 100, 3, 0.05 ,12 ,6]
  
  [[3850.6, 1481, 592.4],
  [4989.4, 1919, 767.6],
  [3335.8, 1283, 513.2],
  [5142.8, 1978, 791.2],
  [5116.8, 1968, 787.2],
  [4460.3, 1715.5, 686.2],
  [3727.1, 1433.5, 573.4],
  [3248.7, 1249.5, 499.8],
  [4704.7, 1809.5, 723.8],
  [3127.8, 1203, 481.2],
  [3225.3, 1240.5, 496.2],
  [3403.4, 1309, 523.6]]
  </code></pre>