simple read(), write() util