AdjIO: Bug fix for non-GCC compilers

On some compilers std::ws sets the failbit if the stream already at
the end. (The Standard does not state anything about the behavior)

Move the operation in the loop below so the program parses the file
correctly.