Issues with fstream and eof() (have spent a combined 5 hours debugging, searching for a solution, and testing)
Why is iostream::eof inside a loop condition (i.e. `while (!stream.eof())`) considered wrong?