lineBuffer in C++
<p>I was just browsing some coding stuff and noticed this code:</p>

<pre><code>int main(int argc,char** argv)
{
  ifstream file;
  string lineBuffer;
  file.open(argv[1]) ;  
  while (!file.eof()) 
  {
     getline(file, lineBuffer);
     if (lineBuffer.length() == 0)
       continue; //ignore all empty lines
     else 
     {
        //do your code here
     }
  }
  return 0;
}
</code></pre>

<p>I have searched for the concept of a <code>lineBuffer</code> all over the net but found no relevant answer.
Can anyone help me to understand how <code>lineBuffer</code> is used to read a file line by line?</p>
