S
shyam
Hi All
I want to know if there is any problem with using
fstream.getLine(char*, int ) function.
My problem is that when I read a file using it, the program aborts when
it reads the terminating newline of a file.
This happens if I set the exception bits using
exceptions(fstream::badbit | fstream::failbit | fstream::eofbit ).
Otherwise it does not happen.
Is there any alternative??
thanks in advance
I want to know if there is any problem with using
fstream.getLine(char*, int ) function.
My problem is that when I read a file using it, the program aborts when
it reads the terminating newline of a file.
This happens if I set the exception bits using
exceptions(fstream::badbit | fstream::failbit | fstream::eofbit ).
Otherwise it does not happen.
Is there any alternative??
thanks in advance