The \dotfill command produces a "rubber length" that produces dots instead of just spaces.
\dotfill
-->LaTeX index