Apparatus for withdrawing or distributing predetermined quantities of fluid