Add io_open and io_create

These are wrappers for fopen, to match the interface described in the
book.