partionstream read write