Implementing raw input/output reading/writing.