Update example in README

Fix bug in README example, where the file is opened in the wrong mode.