title: C++ Easy way to ignore first word of input
body: <p>I am writing a program to read a text file line by line, store the line values in a vector, do some processing then write back to a new text file. This is what the text file typically looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/jzxcX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jzxcX.png" alt="enter image description here"></a></p>
  
  <p>As you can see, there are two columns: one for the frame number and another for the time. What I want is only the second column (aka the time). There can be hundreds, if not thousands of lines in the text file. Previously I have been manually deleting the frame number column which i'd rather not do. So my question is: is there an easy way to edit my current code so that when I read the file with <code>getline()</code> it skips the first word and only gets the second? Here is the code that I use to read the text file. Thanks</p>
  
  <pre><code>ifstream sysfile(sys_time_dir);
  
  //Store lines in a vector
  vector&lt;string&gt; sys_times;
  string textline;
  
  while (getline(sysfile, textline))
  {
      sys_times.push_back(textline);
  }
  </code></pre>