Hello,

I was just curious how blank lines are handled when using getline? Say I have a text file as follows:

Line of text

Line of text again
And I have some simple code like this:

Code:
#include <iostream>
#include <string>
using namespace std;
int main() {

        string line;

        while (getline(cin,line) )
                if (line == blank) cout << "A blank line!" << endl;

}
What would I put in the "blank" spot to test if the line that was retrieved was blank? Thanks.