C++ example: don't segfault if input file doesn't exist.