Initialize read buffer and check its result