Update for removal of io::io_error

All I/O operations now return a Result.