More IO convenience functions.