IO utilities for the lightweight API.