file base IO interface.