Passing I/O functions to a class.

Thanks, that was one of my wrong assumptions, there must be some more.