Function read_using_io_getline() at
http://groups-beta.google.com/group/comp.lang.c++/msg/4500e587611b957e
produces the same output in two diffrent situations:
1) the file ends by '\n' + EOF;
2) the file ends by EOF without '\n'.
I want the program to produce different output that corresponds to the file content (contene includes '\n'-s too).
----- Fragment of read_using_io_getline() -----
if (infile_io.fail())
{
infile_io.clear (~(ios_base::failbit | ~infile_io.rdstate ()));
}
else
{
// Here I would like to know if the file ends by 1) '\n' + EOF or 2) EOF without '\n'.
cout << '\n';
}
-----------------------------------------------