title: How to read formatted data in C++?
body: <p>I have formatted data like the following:</p>
  
  <pre>Words          5
  AnotherWord    4
  SomeWord       6</pre>
  
  <p>It's in a text file and I'm using ifstream to read it, but how do I separate the number and the word? The word will only consist of alphabets and there will be certain spaces or tabs between the word and the number, not sure of how many.</p>