update read-file example to use promises