On Mar 10, 1:49 am, John Harrison <john_androni...@hotmail.comwrote:
Quote:
ankit.kumar.agar...@gmail.com wrote:
Quote:
I am facing a problem with getline
I am reading a text file with a getline function the lines can have
'|' as separator.
>
Quote:
everything works OK but in case if i have 2 delimitors in file '234||
dfdg' so here
my program does not go beyond the 2nd '|'.
i am using ifstream to read the file.
somehow check for eof() gets passed although end of file is not there.
i am using
mFile->getline(mBuf,Length, Delimiter);
>
>
Misunderstanding how getline, operator>and end of file works is one of
the commonest errors we see on this group. But we cannot help you unless
you post the code that doesn't work. We are not psychic.
>
john- Hide quoted text -
>
- Show quoted text -
Can you please tell me that how getline behaves when it sees 2
delimiters sid by side , can it cause
eof() to become true , is it normal
and is their any solution to this