Implemented read/writeArray()