file i/o example with exception not handled