title: c++ how to read a cfg file more complex?
body: <p>I recently changed from c# to c++.
  Ive been watching some tutorials on how to read a config file. I am probably asking it wrong, what I mean is:
  I am making a program, but it's for multiple users. Every user will have his prefence on what will be in a textfile.
  Example:
  In my textfile ("items.txt"), i have default "ints" and configurable "ints".</p>
  
  <pre><code>10=5
  90=2
  50=9
  </code></pre>
  
  <p>In c#, if i remember correctly, i read all lines and if the line started with for example "10=", i splitted the text so my line would only be the configurable  int left and i can use that easly in my program, it was something like:</p>
  
  <pre><code>string[] lines = File.ReadAllLines(path);
  string str;
  foreach (string line in lines)
  {
  if (line.StartsWith("10"))
  {
  str = line.Split('=')[1];
  //I have what i need (str);
  }
  }
  </code></pre>
  
  <p>I did that for everything that i needed. So, what's the best way to do this in c++?</p>
  
  <p>ALSO: I need to get a specific line for them, so i can use them all later on in my program.</p>
  
  <p>Thanks a lot in advance!</p>