A
ankit.kumar.agarwal
I am facing a problem with getline
I am reading a text file with a getline function the lines can have
'|' as separator.
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);
please help me.
I am reading a text file with a getline function the lines can have
'|' as separator.
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);
please help me.