title: Reading different data types in database/file(File Handling in C++)
body: <p>I am doing an ATM exercise. In my database or ".txt" file I have the basic information.</p>
  
  <pre><code>0123456789 John Doe 0123 9000
  </code></pre>
  
  <p>The only thing I can find in the internet, reading a file in C++ is using <code>getline();</code>. It reads the file and stores it in a variable string. I have values like integer and float which I have to use. </p>
  
  <ul>
  <li>How do I store the values in my database to a different data type not
  just in one string?</li>
  <li>Or is there a way of cutting the string and store the the different values in a float or integer?</li>
  <li>Is there another way of reading? I am just new to C++ programming.</li>
  </ul>