examples: use fopen() for stream in mongoc-dump.