Opening and closing an ifstream variable, trying to read 2 files in succession, does not work for the second file. I join to this mail a very short example of the problem. Try .x testfile.C. This problem has appeared in the recent versions of ROOT.
I use ROOT 4.00.06 on Windows XP
BugIfstream.ZIP (668 Bytes)
BugIfstream.ZIP (668 Bytes)
Hello Gentit,
Sorry for late reply. As I tried, g++ behaves the same.
eof() bit is not reset with your sample code. Please review
usage of ifstream.
Thank you
Masa Goto