fails:IO#getc returns the next character from the stream
fails:IO#getc raises IOError on closed stream
