in reply to Re^2: eof not recognised when applying diamond operator to invocation arguments?
in thread eof not recognised when applying diamond operator to invocation arguments?
Why is the code I posted not behaving equivalently to ...
because in your original code the eof is tested only once before everything is being read and output. In the second case, it's tested for every line, so it has a chance to detect the end-of-file conditions.
|
|---|