title: Determine a getline() starting point in C++
body: <p>This is part of my code</p>
  
  <pre><code>string line;
  ifstream file ("Names.txt");
  
  int i;
  for (i = 0; i &lt; line.length(); ++i) {
      if ('A' &lt;= line[i] &amp;&amp; line[i] &lt;= 'Z') break;
  }
  
  string start = line.substr(i);
  getline(file, start, '.');
  cout &lt;&lt; start;
  </code></pre>
  
  <p>I need to start reading a line from first capital letter until the first period in a text file. At the moment it successfully reads from the beginning of the file until the first period. So I have a problem with determining the starting point i (first capital letter).</p>
  
  <p>I appreciate your help!!</p>