title: C++ skip multiple lines efficiently
body: <p>I have code to read every fourth line and do something with it</p>
  
  <pre><code>ifstream in(inputFile, ios::in);
  string zeile;
  for (int z = 0; z &lt; numberOfSequences; z++) {
      getline(in,zeile); // skip 3 lines
      getline(in,zeile); // skip 3 lines
      getline(in,zeile); // skip 3 lines
      getline(in,zeile);
      // do something with zeile
  }
  </code></pre>
  
  <p>my problem is, that the ASCII file has more than 250 000 000 lines. So I am interested in the most efficient way to skip 3 lines. Does <code>getline</code> does some type of parsing <code>in</code> into a string or is this the most efficient way? I don't want to waste time for the skipping.</p>