TOPIC 6.2.1a
End-of-line Character
The Macintosh CodeWarrior compiler does not support the eof function used in this chapter. Consult CodeWarrior's documentaion if you are using the CodeWarrior compiler.
The Macintosh Symantec C++ compiler reports the end of the file before the attemp to read past the last element. Therefore, some programs in the exercises may fail to print the last element of the file. To fix this behavior, remove the if statement around the output statements.
Good question. The Mac, for instance, uses one character and interprets it to mean both carriage return and line feed. DOS uses the two characters (11 and 13 I think). I believe Windows has a little bit different way of doing it too. That might take a little research.