I was trying to take a dig at LaTeX and wanted to write a resume in it, but before I start writing the resume I wanted to learn the quintessential of latex. While trying to create a line I encountered some issues.
When I draw a line beneath or above the text , while generating pdf (using pdflatex) the lines doesn't appear in the same page , rather lines appear in a new page and text in different.
Here is the code
%Trying out rules in Latex
\documentclass{article}
\begin{document}
\title{Rules in \LaTeX{}}
\line(1,0){250}
\author{Shashwat Pant}
\maketitle
\end{document}
If I use \hrulefill or \line I only get line in the document but no text if I use Texmaker, however if I compile it using pdflatex I get the line in the front page and text in other.
So how do I actually draw a line horizontal line touching each end of the sheet yet stay beneath some text, like a separator.

\lineis supposed to be only used in apictureenvironment. – Martin Schröder Aug 19 '12 at 20:12