The \dotfill command produces a rubber length that produces dots instead of just spaces.
See Spaces and Boxes Back to the Table of Contents