The \dotfill command produces a rubber length that produces dots instead of just spaces.
See also: Spaces and Boxes,