Stop trying to catch EndOfFile errors in the examples

Rust now catches EndOfFile errors itself when reading lines.