Episode 007 – Handling EOF with std::getline

After coming across a coding challenge that required knowing how to properly read a file from stdin and print it back to stdout, I realized that I had to look up this seemingly basic task. And yet it’s one of those things that a developer usually takes for granted in a large project. You’re often building on thousands of lines of infrastructure with small details like handing input from stdin either already taken care of or made redundant by file I/O, RPC systems and networking.

Continue reading “Episode 007 – Handling EOF with std::getline”