Modified input/output buffered memory class to be more homogenous with standard input/output functions