In windows getline(,,) returns *this.
And Errors are signaled by modifying the internal state flags e.g. eofbit, failbit, badbit.
e.g. No characters were extracted -> then state flag = failbit
I want to do erro handling to this.
since this retuens pointer how can i do this. Can some one propose a solution??